]> The Tcpdump Group git mirrors - libpcap/commitdiff
Make "gen_protochain()", as it's not used outside "gencode.c", and
authorguy <guy>
Fri, 6 Oct 2000 04:52:53 +0000 (04:52 +0000)
committerguy <guy>
Fri, 6 Oct 2000 04:52:53 +0000 (04:52 +0000)
declare it before it's defined.

gencode.c

index 05797cef472cc4bbc29f646f0e004a7b20b3f63c..2750df65f4f3ed7481658777e5e61b1ea233443a 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -21,7 +21,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.119 2000-09-23 07:26:27 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.120 2000-10-06 04:52:53 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -156,6 +156,7 @@ struct block *gen_portop6(int, int, int);
 static struct block *gen_port6(int, int, int);
 #endif
 static int lookup_proto(const char *, int);
+static struct block *gen_protochain(int, int, int);
 static struct block *gen_proto(int, int, int);
 static struct slist *xfer_to_x(struct arth *);
 static struct slist *xfer_to_a(struct arth *);
@@ -1677,7 +1678,7 @@ gen_joinsp(s, n)
 }
 #endif
 
-struct block *
+static struct block *
 gen_protochain(v, proto, dir)
        int v;
        int proto;