]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
portability fix: lib/rfcnb symbol shuffling
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 10 Jan 2011 16:55:29 +0000 (17:55 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 10 Jan 2011 16:55:29 +0000 (17:55 +0100)
lib/rfcnb/rfcnb-io.c
lib/rfcnb/rfcnb-util.c
lib/rfcnb/rfcnb-util.h
lib/rfcnb/session.c

index 9fd93dabb81e07fe83d44a514efe63b1daef04f3..06786c4e46c276156012f931cb7599a358182a44 100644 (file)
@@ -38,7 +38,7 @@
 
 int RFCNB_Timeout = 0;          /* Timeout in seconds ... */
 
-int RFCNB_Discard_Rest(struct RFCNB_Con *con, int len);
+static int RFCNB_Discard_Rest(struct RFCNB_Con *con, int len);
 
 #ifdef NOT_USED
 void
index f1e7ef251fc152242e9f174d92366a85eaa5c834..c28f43fa7f0c59b7575a47eb4b948838a9c76586 100644 (file)
@@ -38,8 +38,6 @@
 #include <string.h>
 #endif
 
-extern void (*Prot_Print_Routine) (FILE * fd, int dir, struct RFCNB_Pkt * pkt, int header, int payload);   /* Pointer to protocol print routine */
-
 const char *RFCNB_Error_Strings[] = {
     "RFCNBE_OK: Routine completed successfully.",
     "RFCNBE_NoSpace: No space available for a malloc call.",
index 4415b11e4decdcb01574947a902ba311d0d596bf..1fe1a4a8f132cd4e2e092d580f269a91c96d6d96 100644 (file)
@@ -45,3 +45,6 @@ int RFCNB_Session_Req(struct RFCNB_Con *con,
                       BOOL * redirect,
                       struct in_addr *Dest_IP,
                       int *port);
+
+typedef void RFCNB_Prot_Print_Routine(FILE * fd, int dir, struct RFCNB_Pkt *pkt, int header, int payload);
+extern RFCNB_Prot_Print_Routine *Prot_Print_Routine;
index c3b87df56fecfbb3f56f4bf1cb2c77a97ee81ba5..0f279b958670b60a517e9716b1cf184a5f1466a3 100644 (file)
@@ -42,7 +42,6 @@ int RFCNB_saved_errno = 0;
 
 int RFCNB_Stats[RFCNB_MAX_STATS];
 
-typedef void RFCNB_Prot_Print_Routine(FILE * fd, int dir, struct RFCNB_Pkt *pkt, int header, int payload);
 RFCNB_Prot_Print_Routine *Prot_Print_Routine = NULL;   /* Pointer to protocol print routine */
 
 int RFCNB_Get_Last_Errno(void);