Include string.h. Add typecasts to the arguments of printf-like functions where necessary.
Showing
2 changed files
with
4 additions
and
2 deletions
... | @@ -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 | { | ... | ... |
-
Please register or sign in to post a comment