summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-09-10 14:27:18 +0000
committerjoerg <joerg@pkgsrc.org>2013-09-10 14:27:18 +0000
commitea7de795b273c0f5486c93870d974b2f904f5f42 (patch)
treed96c8fffbe94a872bea5a699d43250c34ee24c0a
parentf8e7c89eadd15b10eb3398301b772a771522b69e (diff)
downloadpkgsrc-ea7de795b273c0f5486c93870d974b2f904f5f42.tar.gz
Use portable 32bit format string.
-rw-r--r--net/choparp/distinfo3
-rw-r--r--net/choparp/patches/patch-choparp.c21
2 files changed, 23 insertions, 1 deletions
diff --git a/net/choparp/distinfo b/net/choparp/distinfo
index d154ace5002..55fbd012907 100644
--- a/net/choparp/distinfo
+++ b/net/choparp/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2006/11/09 09:12:30 rillig Exp $
+$NetBSD: distinfo,v 1.7 2013/09/10 14:27:18 joerg Exp $
SHA1 (choparp-20021107.tar.gz) = 1b83f967c46ec466513447b10b4a98371301f504
RMD160 (choparp-20021107.tar.gz) = 2cae71b0c61b38db891b598bbc36a5477d40edbf
Size (choparp-20021107.tar.gz) = 6687 bytes
SHA1 (patch-aa) = 94dbd0c5b97acd28b0229e6bc4499d107f6051d5
SHA1 (patch-ab) = 5ff2ce93298689983b6fd46af6c467ec2b393d61
+SHA1 (patch-choparp.c) = 173890586d68292bcf5cd3614d5b0ebf2a74de96
diff --git a/net/choparp/patches/patch-choparp.c b/net/choparp/patches/patch-choparp.c
new file mode 100644
index 00000000000..526298982b1
--- /dev/null
+++ b/net/choparp/patches/patch-choparp.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-choparp.c,v 1.1 2013/09/10 14:27:18 joerg Exp $
+
+--- choparp.c.orig 2013-09-09 22:24:29.000000000 +0000
++++ choparp.c
+@@ -36,6 +36,7 @@
+
+ */
+
++#include <inttypes.h>
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+@@ -354,7 +355,7 @@ atoip(char *buf, u_int32_t *ip_addr){
+ *ip_addr = (i0 << 24) + (i1 << 16) + (i2 << 8) + i3;
+ return(0);
+ }
+- if (sscanf(buf, "0x%lx", ip_addr) == 1)
++ if (sscanf(buf, "0x%" PRIx32, ip_addr) == 1)
+ return(0);
+
+ return(-1);