]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fixed pinger xassert() link bug
authorwessels <>
Fri, 13 Nov 1998 13:00:29 +0000 (13:00 +0000)
committerwessels <>
Fri, 13 Nov 1998 13:00:29 +0000 (13:00 +0000)
src/Makefile.in
src/debug.cc
src/protos.h
src/tools.cc

index c093c27df5b7bc27d63ca7a4cd719cdc9daba25b..10653f02f4b77038bb4b08f0e010a20e73ccdefd 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.in,v 1.163 1998/11/12 06:27:51 wessels Exp $
+#  $Id: Makefile.in,v 1.164 1998/11/13 06:00:29 wessels Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -213,7 +213,7 @@ $(DNSSERVER_EXE): dnsserver.o
 $(CACHEMGR_EXE): cachemgr.o
        $(CC) -o $@ $(LDFLAGS) cachemgr.o $(CLIENT_LIBS)
 
-$(PINGER_EXE): pinger.o
+$(PINGER_EXE): pinger.o debug.o globals.o
        $(CC) -o $@ $(LDFLAGS) pinger.o debug.o globals.o $(PINGER_LIBS)
 
 $(UNLINKD_EXE): unlinkd-daemon.o
index 7d04fe94d25ef345a9f6b9b2d673c3ebb3f55578..7ce6799fb592028af0ee9aea9f66539da78be3fb 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: debug.cc,v 1.71 1998/08/20 22:29:55 wessels Exp $
+ * $Id: debug.cc,v 1.72 1998/11/13 06:00:30 wessels Exp $
  *
  * DEBUG: section 0     Debug Routines
  * AUTHOR: Harvest Derived
@@ -230,6 +230,14 @@ debugLogTime(time_t t)
     return buf;
 }
 
+void
+xassert(const char *msg, const char *file, int line)
+{   
+    debug(0, 0) ("assertion failed: %s:%d: \"%s\"\n", file, line, msg);
+    if (!shutting_down)
+        abort();
+}
+
 /*
  * Context-based Debugging
  *
index 2aba51afe4b74c3c4fb74b480d0c2d3fb84a190b..51b8244388c498d783a2b7c46a21fdd627930f28 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: protos.h,v 1.286 1998/11/12 23:07:37 wessels Exp $
+ * $Id: protos.h,v 1.287 1998/11/13 06:00:31 wessels Exp $
  *
  *
  * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -190,6 +190,7 @@ extern void _db_print(const char *,...);
 #else
 extern void _db_print();
 #endif
+extern void xassert(const char *, const char *, int);
 
 /* packs, then prints an object using debug() */
 extern void debugObj(int section, int level, const char *label, void *obj, ObjPackMethod pm);
@@ -1016,7 +1017,6 @@ extern double gb_to_double(const gb_t *);
 extern const char *gb_to_str(const gb_t *);
 extern void gb_flush(gb_t *);  /* internal, do not use this */
 extern int stringHasWhitespace(const char *);
-extern void xassert(const char *, const char *, int);
 
 #if USE_HTCP
 extern void htcpInit(void);
index a6eacea0e8357143fd983c8b1072373a1f585ab1..0e8e592b974ece20250ccc1aa1cb2ddd0f1b4d84 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.171 1998/11/12 23:07:39 wessels Exp $
+ * $Id: tools.cc,v 1.172 1998/11/13 06:00:32 wessels Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -836,11 +836,3 @@ stringHasWhitespace(const char *s)
 {
     return (strcspn(s, w_space) != strlen(s));
 }
-
-void
-xassert(const char *msg, const char *file, int line)
-{
-    debug(0, 0) ("assertion failed: %s:%d: \"%s\"\n", file, line, msg);
-    if (!shutting_down)
-        abort();
-}