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 +++-- 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 #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) { 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 #include #include +#include #include int -- cgit v1.2.1