summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/addr.c5
-rw-r--r--examples/base64.c1
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

Return to:

Send suggestions and report system problems to the System administrator.