From cdf51934dc29acfb379e02f634c0ad61d04794f8 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 11 Dec 2002 15:17:18 +0000 Subject: Include string.h. Add typecasts to the arguments of printf-like functions where necessary. --- examples/addr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/addr.c') 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 #include +#include #include #include @@ -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) { -- cgit v1.2.1