diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-12-11 15:17:18 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-12-11 15:17:18 +0000 |
commit | cdf51934dc29acfb379e02f634c0ad61d04794f8 (patch) | |
tree | 6cf2813d48eccab2de0619f4e080b9a020c623fe /examples | |
parent | 7c36ae29cce4a8b6cffe8508e96c83b2ce26f582 (diff) | |
download | mailutils-cdf51934dc29acfb379e02f634c0ad61d04794f8.tar.gz mailutils-cdf51934dc29acfb379e02f634c0ad61d04794f8.tar.bz2 |
Include string.h. Add typecasts to the arguments of printf-like functions where necessary.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/addr.c | 5 | ||||
-rw-r--r-- | examples/base64.c | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/addr.c b/examples/addr.c index 9d150fd64..675732353 100644 --- a/examples/addr.c +++ b/examples/addr.c @@ -17,6 +17,7 @@ #include <stdio.h> #include <errno.h> +#include <string.h> #include <mailutils/address.h> #include <mailutils/errno.h> @@ -46,7 +47,7 @@ parse (const char *str) } else { - printf ("%s=> pcount %d\n", str, pcount); + printf ("%s=> pcount %lu\n", str, (unsigned long) pcount); } for (no = 1; no <= pcount; no++) @@ -56,7 +57,7 @@ parse (const char *str) address_is_group (address, no, &isgroup); - printf ("%d ", no); + printf ("%lu ", (unsigned long) no); if (isgroup) { diff --git a/examples/base64.c b/examples/base64.c index 9d80c7d52..5348bfc89 100644 --- a/examples/base64.c +++ b/examples/base64.c @@ -19,6 +19,7 @@ #include <stdio.h> #include <assert.h> #include <ctype.h> +#include <string.h> #include <mailutils/mailutils.h> int |