Revision: 14682
Author: adrian.chadd
Date: Thu May 20 02:32:26 2010
Log: Migrate hierarchyNote() out of src/access_log.c and into src/hierarchy_entry.c.


http://code.google.com/p/lusca-cache/source/detail?r=14682

Modified:
 /branches/LUSCA_HEAD/src/access_log.c
 /branches/LUSCA_HEAD/src/forward.c
 /branches/LUSCA_HEAD/src/hierarchy_entry.c
 /branches/LUSCA_HEAD/src/hierarchy_entry.h
 /branches/LUSCA_HEAD/src/ssl.c

=======================================
--- /branches/LUSCA_HEAD/src/access_log.c       Fri Mar  5 04:07:46 2010
+++ /branches/LUSCA_HEAD/src/access_log.c       Thu May 20 02:32:26 2010
@@ -1263,16 +1263,6 @@
     headerslog = NULL;
 #endif
 }
-
-void
-hierarchyNote(HierarchyLogEntry * hl,
-    hier_code code,
-    const char *cache_peer)
-{
-    assert(hl != NULL);
-    hl->code = code;
-    xstrncpy(hl->host, cache_peer, SQUIDHOSTNAMELEN);
-}

 void
 accessLogInit(void)
=======================================
--- /branches/LUSCA_HEAD/src/forward.c  Mon Apr 19 22:01:43 2010
+++ /branches/LUSCA_HEAD/src/forward.c  Thu May 20 02:32:26 2010
@@ -36,6 +36,7 @@

 #include "squid.h"
 #include "pconn.h"
+#include "hierarchy_entry.h"

 #if LINUX_NETFILTER
 #include <linux/types.h>
=======================================
--- /branches/LUSCA_HEAD/src/hierarchy_entry.c  Thu May 20 02:16:16 2010
+++ /branches/LUSCA_HEAD/src/hierarchy_entry.c  Thu May 20 02:32:26 2010
@@ -6,3 +6,13 @@
 {
        memcpy(dst, src, sizeof(HierarchyLogEntry));
 }
+
+void
+hierarchyNote(HierarchyLogEntry * hl,
+    hier_code code,
+    const char *cache_peer)
+{
+    assert(hl != NULL);
+    hl->code = code;
+    xstrncpy(hl->host, cache_peer, SQUIDHOSTNAMELEN);
+}
=======================================
--- /branches/LUSCA_HEAD/src/hierarchy_entry.h  Thu May 20 02:16:16 2010
+++ /branches/LUSCA_HEAD/src/hierarchy_entry.h  Thu May 20 02:32:26 2010
@@ -2,5 +2,6 @@
 #define        __LUSCA_HIERARCHY_ENTRY_H__

extern void hierarchyLogEntryCopy(HierarchyLogEntry *dst, HierarchyLogEntry *src); +extern void hierarchyNote(HierarchyLogEntry * hl, hier_code code, const char *cache_peer);

 #endif
=======================================
--- /branches/LUSCA_HEAD/src/ssl.c      Mon Oct 26 23:58:33 2009
+++ /branches/LUSCA_HEAD/src/ssl.c      Thu May 20 02:32:26 2010
@@ -34,6 +34,7 @@
  */

 #include "squid.h"
+#include "hierarchy_entry.h"

 typedef struct {
     char *url;

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to