summaryrefslogtreecommitdiff
path: root/archivers/squsq/patches/patch-tr2_c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/squsq/patches/patch-tr2_c')
-rw-r--r--archivers/squsq/patches/patch-tr2_c33
1 files changed, 33 insertions, 0 deletions
diff --git a/archivers/squsq/patches/patch-tr2_c b/archivers/squsq/patches/patch-tr2_c
new file mode 100644
index 00000000000..8213bf6f2a4
--- /dev/null
+++ b/archivers/squsq/patches/patch-tr2_c
@@ -0,0 +1,33 @@
+$NetBSD: patch-tr2_c,v 1.1 2011/09/04 01:22:04 dholland Exp $
+
+Don't use NULL as an integer zero.
+
+--- tr2.c~ 1986-12-31 04:02:20.000000000 +0000
++++ tr2.c
+@@ -321,7 +321,7 @@ init_enc()
+ * Returns ERROR if codes are too long.
+ */
+
+-int /* returns ERROR or NULL */
++int /* returns ERROR or FALSE */
+ buildenc(level, root)
+ int level;/* level of tree being examined, from zero */
+ int root; /* root of subtree is also data value if leaf */
+@@ -347,7 +347,7 @@ int root; /* root of subtree is also dat
+ #ifdef DEBUG
+ if (debug) printf(" codelen[%d]=%d,code[%d]=%02x\n",root,codelen[root],root,code[root]);
+ #endif
+- return ((level > 16) ? ERROR : NULL);
++ return ((level > 16) ? ERROR : FALSE);
+ } else {
+ if( l != NOCHILD) {
+ /* Clear path bit and continue deeper */
+@@ -364,7 +364,7 @@ int root; /* root of subtree is also dat
+ return (ERROR);
+ }
+ }
+- return (NULL); /* if we got here we're ok so far */
++ return (FALSE); /* if we got here we're ok so far */
+ }
+ /* */
+ /* Write out the header of the compressed file */