summaryrefslogtreecommitdiff
path: root/examples/example5.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example5.c')
-rw-r--r--examples/example5.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/example5.c b/examples/example5.c
index 2b40052..7f553c3 100644
--- a/examples/example5.c
+++ b/examples/example5.c
@@ -1,5 +1,6 @@
/* example5.c --- Example TLD checking.
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Simon
+ * Josefsson
*
* This file is part of GNU Libidn.
*
@@ -65,7 +66,7 @@ main (void)
fgets (buf, BUFSIZ, stdin);
buf[strlen (buf) - 1] = '\0';
- printf ("Read string (length %d): ", strlen (buf));
+ printf ("Read string (length %ld): ", strlen (buf));
for (i = 0; i < strlen (buf); i++)
printf ("%02x ", buf[i] & 0xFF);
printf ("\n");
@@ -86,7 +87,7 @@ main (void)
return 2;
}
- printf ("ToASCII string (length %d): %s\n", strlen (p), p);
+ printf ("ToASCII string (length %ld): %s\n", strlen (p), p);
rc = idna_to_unicode_8z4z (p, &r, 0);
free (p);
@@ -106,7 +107,7 @@ main (void)
free (r);
if (rc == TLD_INVALID)
{
- printf ("Domain rejected by TLD check, Unicode position %d\n", errpos);
+ printf ("Domain rejected by TLD check, Unicode position %ld\n", errpos);
return 1;
}
else if (rc != TLD_SUCCESS)