summaryrefslogtreecommitdiff
path: root/examples/addr.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-12-11 15:17:18 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-12-11 15:17:18 +0000
commitcdf51934dc29acfb379e02f634c0ad61d04794f8 (patch)
tree6cf2813d48eccab2de0619f4e080b9a020c623fe /examples/addr.c
parent7c36ae29cce4a8b6cffe8508e96c83b2ce26f582 (diff)
downloadmailutils-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/addr.c')
-rw-r--r--examples/addr.c5
1 files changed, 3 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)
{

Return to:

Send suggestions and report system problems to the System administrator.