summaryrefslogtreecommitdiff
path: root/archivers/squsq/patches/patch-aa
blob: b97d590e7151a07cb4b2e785df79a83ccd4f326c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
$NetBSD: patch-aa,v 1.2 2011/09/04 01:22:04 dholland Exp $

Fix function return types.
Fix invalid cpp usage.

--- usq.c.orig	1988-01-17 00:54:04.000000000 +0000
+++ usq.c
@@ -62,6 +62,9 @@
 
 #define VERSION "3.3   10/29/86"
 
+void obey(char *p);
+void unsqueeze(char *infile);
+
 /* This must follow all include files */
 unsigned int dispcnt;	/* How much of each file to preview */
 char	ffflag;		/* should formfeed separate preview from different files */
@@ -107,6 +110,7 @@ char *argv[];
 
 /* ejecteject */
 
+void
 obey(p)
 char *p;
 {
@@ -153,6 +157,7 @@ char *p;
 
 /* ejecteject */
 
+void
 unsqueeze(infile)
 char *infile;
 {
@@ -215,7 +220,7 @@ char *infile;
 		goto closein;
 	}
 
-#ifdef C70 | TOPS20
+#if defined(C70) || defined(TOPS20)
 	filecrc = getx16(inbuff);
 #else
 	filecrc = getw16(inbuff);
@@ -239,7 +244,7 @@ char *infile;
 	printf("%s -> %s: ", infile, outfile);
 #endif
 
-#ifdef C70 | TOPS20
+#if defined(C70) || defined(TOPS20)
 	numnodes = getx16(inbuff);
 #else
 	numnodes = getw16(inbuff);