summaryrefslogtreecommitdiff
path: root/misc/jhd
diff options
context:
space:
mode:
authorjoerg <joerg>2013-02-26 11:06:52 +0000
committerjoerg <joerg>2013-02-26 11:06:52 +0000
commit0d522cd3dbd21df7f78e0b4162120a4d528ea5ef (patch)
tree2e29308a9614da3340a4b2aab2c1d3526d27794c /misc/jhd
parenta1dfa4fae954f852411783854f1f485e7c5855b7 (diff)
downloadpkgsrc-0d522cd3dbd21df7f78e0b4162120a4d528ea5ef.tar.gz
Fix return types.
Diffstat (limited to 'misc/jhd')
-rw-r--r--misc/jhd/distinfo3
-rw-r--r--misc/jhd/patches/patch-jhd.c32
2 files changed, 34 insertions, 1 deletions
diff --git a/misc/jhd/distinfo b/misc/jhd/distinfo
index 83419b3f085..e0c363c27ee 100644
--- a/misc/jhd/distinfo
+++ b/misc/jhd/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 11:02:53 agc Exp $
+$NetBSD: distinfo,v 1.3 2013/02/26 11:06:52 joerg Exp $
SHA1 (jhd-2.3.tar.gz) = 6df8f56185b5a079eb624cc6e16eabc767e94d47
RMD160 (jhd-2.3.tar.gz) = ce9a0924e416256f43ef66c609f94c5c8c1d5e0b
Size (jhd-2.3.tar.gz) = 7310 bytes
+SHA1 (patch-jhd.c) = 07e27d9df45d86ca0fca4dac87d439793855b14a
diff --git a/misc/jhd/patches/patch-jhd.c b/misc/jhd/patches/patch-jhd.c
new file mode 100644
index 00000000000..bf27fa7f4ff
--- /dev/null
+++ b/misc/jhd/patches/patch-jhd.c
@@ -0,0 +1,32 @@
+$NetBSD: patch-jhd.c,v 1.1 2013/02/26 11:06:52 joerg Exp $
+
+--- jhd.c.orig 2013-02-25 15:34:57.000000000 +0000
++++ jhd.c
+@@ -25,6 +25,8 @@ static char rcsid[] =
+
+ #include <stdio.h>
+ #include <ctype.h>
++#include <unistd.h>
++#include <string.h>
+
+ #define BSIZE 16384 /* input buffer size */
+
+@@ -534,7 +536,7 @@ register int adv;
+ }
+ }
+
+-dmpall (buf, size)
++void dmpall (buf, size)
+ register unsigned char *buf;
+ register int size;
+ {
+@@ -728,8 +730,7 @@ char *name;
+ exit (EXSTAT);
+ }
+
+-skipread (fp)
+-FILE *fp;
++void skipread(FILE *fp)
+ {
+ register long offset;
+