Commit cdf51934 cdf51934dc29acfb379e02f634c0ad61d04794f8 by Sergey Poznyakoff

Include string.h. Add typecasts to the arguments of printf-like functions where necessary.

1 parent 7c36ae29
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
17 17
18 #include <stdio.h> 18 #include <stdio.h>
19 #include <errno.h> 19 #include <errno.h>
20 #include <string.h>
20 21
21 #include <mailutils/address.h> 22 #include <mailutils/address.h>
22 #include <mailutils/errno.h> 23 #include <mailutils/errno.h>
...@@ -46,7 +47,7 @@ parse (const char *str) ...@@ -46,7 +47,7 @@ parse (const char *str)
46 } 47 }
47 else 48 else
48 { 49 {
49 printf ("%s=> pcount %d\n", str, pcount); 50 printf ("%s=> pcount %lu\n", str, (unsigned long) pcount);
50 } 51 }
51 52
52 for (no = 1; no <= pcount; no++) 53 for (no = 1; no <= pcount; no++)
...@@ -56,7 +57,7 @@ parse (const char *str) ...@@ -56,7 +57,7 @@ parse (const char *str)
56 57
57 address_is_group (address, no, &isgroup); 58 address_is_group (address, no, &isgroup);
58 59
59 printf ("%d ", no); 60 printf ("%lu ", (unsigned long) no);
60 61
61 if (isgroup) 62 if (isgroup)
62 { 63 {
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
19 #include <stdio.h> 19 #include <stdio.h>
20 #include <assert.h> 20 #include <assert.h>
21 #include <ctype.h> 21 #include <ctype.h>
22 #include <string.h>
22 #include <mailutils/mailutils.h> 23 #include <mailutils/mailutils.h>
23 24
24 int 25 int
......