Commit e3d2c437 e3d2c437ef0d065f406b5ea0d4e162d0c90977f0 by Sergey Poznyakoff

Include mu_umaxtostr.h

1 parent d44a6c72
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,7 @@
95 #include <mailutils/url.h> 95 #include <mailutils/url.h>
96 96
97 #include <mu_asprintf.h> 97 #include <mu_asprintf.h>
98 #include <mu_umaxtostr.h>
98 #include <getline.h> 99 #include <getline.h>
99 100
100 #ifdef __cplusplus 101 #ifdef __cplusplus
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
17 Boston, MA 02110-1301 USA */ 17 Boston, MA 02110-1301 USA */
18 18
19 #include "mu_scm.h" 19 #include "mu_scm.h"
20 #include <mu_umaxtostr.h>
20 21
21 struct mu_port 22 struct mu_port
22 { 23 {
...@@ -270,7 +271,7 @@ mu_port_print (SCM exp, SCM port, scm_print_state *pstate) ...@@ -270,7 +271,7 @@ mu_port_print (SCM exp, SCM port, scm_print_state *pstate)
270 if (mu_stream_size (mp->stream, &size) == 0) 271 if (mu_stream_size (mp->stream, &size) == 0)
271 { 272 {
272 char buffer[64]; 273 char buffer[64];
273 snprintf (buffer, sizeof (buffer), " %-5ld", size); 274 snprintf (buffer, sizeof (buffer), " %-5s", mu_umaxtostr (0, size));
274 scm_puts (buffer, port); 275 scm_puts (buffer, port);
275 scm_puts (" chars", port); 276 scm_puts (" chars", port);
276 } 277 }
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
54 #include <mailutils/mime.h> 54 #include <mailutils/mime.h>
55 55
56 #include <mu_asprintf.h> 56 #include <mu_asprintf.h>
57 #include <mu_umaxtostr.h>
57 #include <getline.h> 58 #include <getline.h>
58 59
59 #if !HAVE_DECL_STRCHRNUL 60 #if !HAVE_DECL_STRCHRNUL
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
25 #endif 25 #endif
26 #include <mu_dbm.h> 26 #include <mu_dbm.h>
27 #include <mu_asprintf.h> 27 #include <mu_asprintf.h>
28 #include <mu_umaxtostr.h>
28 29
29 /* The implementation */ 30 /* The implementation */
30 #define IMPL "GNU POP3 Daemon" 31 #define IMPL "GNU POP3 Daemon"
......