]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
remove doubly-defined globals
authorwessels <>
Mon, 14 Jul 1997 09:33:33 +0000 (09:33 +0000)
committerwessels <>
Mon, 14 Jul 1997 09:33:33 +0000 (09:33 +0000)
src/Makefile.in
src/acl.cc
src/comm.cc
src/debug.cc
src/errorpage.cc
src/icmp.cc
src/stmem.cc
src/tools.cc

index 18f1e54b78c4f9de1a90ee83b41c9376a5b96af1..c5e6f9098cd6b4e6fcf54cb56c6570ee5947c218 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.in,v 1.81 1997/07/07 05:29:37 wessels Exp $
+#  $Id: Makefile.in,v 1.82 1997/07/14 03:33:33 wessels Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -155,7 +155,7 @@ cachemgr.cgi:       cachemgr.o
        $(CC) -o $@ $(LDFLAGS) cachemgr.o $(CLIENT_LIBS)
 
 pinger: pinger.o
-       $(CC) -o $@ $(LDFLAGS) pinger.o debug.o $(PINGER_LIBS)
+       $(CC) -o $@ $(LDFLAGS) pinger.o debug.o globals.o $(PINGER_LIBS)
 
 unlinkd: unlinkd.c
        $(CC) $(CFLAGS) -DUNLINK_DAEMON $(srcdir)/unlinkd.c -o $@ $(LDFLAGS)
index 0bae57b42e77c8aecce565fbb7f5102722d54730..d7566d224b6bf5618c44d030890eb507994ca3fa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: acl.cc,v 1.102 1997/07/07 05:29:38 wessels Exp $
+ * $Id: acl.cc,v 1.103 1997/07/14 03:33:34 wessels Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -38,9 +38,6 @@
 #include "splay.h"
 #endif
 
-/* Global */
-const char *AclMatchedName = NULL;
-
 static int aclFromFile = 0;
 static FILE *aclFile;
 
index 090f68e0e8b6647002faf68321b02fc9db7eec9a..77a9f98ab6f20dba67f0e27fadbfae08ea08b597 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.172 1997/07/07 05:29:42 wessels Exp $
+ * $Id: comm.cc,v 1.173 1997/07/14 03:33:35 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
  * running shy of free file descriptors.  For example, under SunOS, we'll keep
  * 64 file descriptors free for disk-i/o and connections to remote servers */
 
-int RESERVED_FD = 64;
-int polledinc = 0;
-
 #define min(x,y) ((x)<(y)? (x) : (y))
 #define max(a,b) ((a)>(b)? (a) : (b))
 
@@ -142,10 +139,8 @@ typedef struct {
     int fd;
 } ConnectStateData;
 
-/* GLOBAL */
-fde *fd_table = NULL;  /* also used in disk.c */
-
 /* STATIC */
+static int polledinc = 0;
 static int commBind _PARAMS((int s, struct in_addr, u_short port));
 #if !HAVE_POLL
 static int examine_select _PARAMS((fd_set *, fd_set *));
index c7a8ee794f7bbf38c5674254c6275de26943c364..bddc14c807aa6191fc90cf4933fb3e7363b57f90 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: debug.cc,v 1.45 1997/06/04 06:15:49 wessels Exp $
+ * $Id: debug.cc,v 1.46 1997/07/14 03:33:36 wessels Exp $
  *
  * DEBUG: section 0     Debug Routines
  * AUTHOR: Harvest Derived
 
 #include "squid.h"
 
-FILE *debug_log = NULL;
 static char *debug_log_file = NULL;
-int debugLevels[MAX_DEBUG_SECTIONS];
 static char *accessLogTime _PARAMS((time_t));
 extern int opt_debug_stderr;
 
-#ifdef HAVE_SYSLOG
-int _db_level = 0;
-#endif
-
 #ifdef __STDC__
 void
 _db_print(const char *format,...)
index 484de8a79a17303ab5b262a199cf545824454d68..32ca17e8dc204036dffb4ab2e5e0cf1f526b977d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: errorpage.cc,v 1.57 1997/06/19 22:51:48 wessels Exp $
+ * $Id: errorpage.cc,v 1.58 1997/07/14 03:33:37 wessels Exp $
  *
  * DEBUG: section 4     Error Generation
  * AUTHOR: Duane Wessels
@@ -133,9 +133,6 @@ static error_data ErrorData[] =
        "You must authenticate yourself before accessing this cache."}
 };
 
-/* GLOBAL */
-char *tmp_error_buf;
-
 /* LOCAL */
 static char *tbuf = NULL;
 static char *auth_msg = NULL;
index ba150fb6d042b008b70e4bce05f2a7f007a73776..1ee2b7d2b758add07acd7b0b92cb5367f040896e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: icmp.cc,v 1.38 1997/07/07 05:29:46 wessels Exp $
+ * $Id: icmp.cc,v 1.39 1997/07/14 03:33:38 wessels Exp $
  *
  * DEBUG: section 37    ICMP Routines
  * AUTHOR: Duane Wessels
@@ -32,8 +32,6 @@
 
 #include "squid.h"
 
-int icmp_sock = -1;
-
 #if USE_ICMP
 
 #define S_ICMP_ECHO    1
index 532230489e20744d4f835d6e2e62a53907e204fd..6c7edfe0663f14dbb26683e6f6081b2e172af1f0 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stmem.cc,v 1.45 1997/07/07 05:29:55 wessels Exp $
+ * $Id: stmem.cc,v 1.46 1997/07/14 03:33:40 wessels Exp $
  *
  * DEBUG: section 19    Memory Primitives
  * AUTHOR: Harvest Derived
 
 #include "squid.h"
 
-stmem_stats sm_stats;
-stmem_stats disk_stats;
-stmem_stats request_pool;
-stmem_stats mem_obj_pool;
-
 #define min(x,y) ((x)<(y)? (x) : (y))
 
 #ifndef USE_MEMALIGN
index f3ce413026f6d061404a012be9c8a6df723f4a7c..84aa833c56e4573a1759f404518a7050740c4b59 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.111 1997/07/07 05:29:57 wessels Exp $
+ * $Id: tools.cc,v 1.112 1997/07/14 03:33:41 wessels Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
 
 #include "squid.h"
 
-int do_mallinfo = 0;           /* don't do mallinfo() unless this gets set */
-time_t squid_curtime;
-struct timeval current_time;
-
 #define DEAD_MSG "\
 The Squid Cache (version %s) died.\n\
 \n\