shithub: sox

Download patch

ref: f6b38c5d8016b695cfb21a11852542d0bf68f400
parent: 26fb5f3d5e1bd3771f90a4dfaf2aac80b7c1390b
author: cbagwell <cbagwell>
date: Sun Oct 24 18:01:06 EDT 1999

*** empty log message ***

--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -113,6 +113,7 @@
 
 install-lib: libst.a
 	$(INSTALL) -c -m 644 libst.a $(LIBDIR)
+	$(RANLIB) $(LIBDIR)/libst.a
 	$(INSTALL) -c -m 644 libst.3 $(MANDIR)/man3
 	$(INSTALL) -c -m 644 st.h $(INCDIR)
 
--- a/src/hcom.c
+++ b/src/hcom.c
@@ -298,13 +298,14 @@
 /* understands this format. */
 
 /* XXX This uses global variables -- one day these should all be
-   passed around in a structure instead. */
+   passed around in a structure instead. Use static so we don't
+   polute global name space. */
 
-dictent dictionary[511];
-dictent *de;
-LONG codes[256];
-LONG codesize[256];
-LONG checksum;
+static dictent dictionary[511];
+static dictent *de;
+static LONG codes[256];
+static LONG codesize[256];
+static LONG checksum;
 
 void makecodes(e, c, s, b)
 int e, c, s, b;
@@ -318,8 +319,8 @@
   }
 }
 
-LONG curword;
-int nbits;
+static LONG curword;
+static int nbits;
 
 void putlong(c, v)
 unsigned char *c;
--- a/src/util.c
+++ b/src/util.c
@@ -40,7 +40,7 @@
 EXPORT int verbose = 0;	/* be noisy on stderr */
 EXPORT int summary = 0;	/* just print summary of information */
 
-EXPORT char *myname;
+EXPORT char *myname = 0;
 
 EXPORT int soxpreview = 0;	/* preview mode */