Revision: 14909
Author:   adrian.chadd
Date:     Sun Jul 10 20:48:06 2011
Log:      Fix wrapping


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

Modified:
 /playpen/LUSCA_HEAD_ipv6/src/pconn.c

=======================================
--- /playpen/LUSCA_HEAD_ipv6/src/pconn.c        Tue Aug 31 20:24:45 2010
+++ /playpen/LUSCA_HEAD_ipv6/src/pconn.c        Sun Jul 10 20:48:06 2011
@@ -47,8 +47,10 @@

 static PF pconnRead;
 static PF pconnTimeout;
-static hash_link * pconnLookup(const char *peer, u_short port, const char *domain, sqaddr_t *client_address); -static int pconnKey(char *buf, const char *host, u_short port, const char *domain, sqaddr_t *client_address);
+static hash_link * pconnLookup(const char *peer, u_short port,
+  const char *domain, sqaddr_t *client_address);
+static int pconnKey(char *buf, const char *host, u_short port,
+  const char *domain, sqaddr_t *client_address);
 static hash_table *table = NULL;
 static struct _pconn *pconnNew(const char *key);
 static void pconnDelete(struct _pconn *p);
@@ -201,7 +203,8 @@
 }

 void
-pconnPush6(int fd, const char *host, u_short port, const char *domain, sqaddr_t *client_address)
+pconnPush6(int fd, const char *host, u_short port, const char *domain,
+  sqaddr_t *client_address)
 {
     struct _pconn *p;
     int *old;
@@ -240,7 +243,8 @@
 }

 void
-pconnPush(int fd, const char *host, u_short port, const char *domain, struct in_addr *client_address, u_short client_port)
+pconnPush(int fd, const char *host, u_short port, const char *domain,
+  struct in_addr *client_address, u_short client_port)
 {
        sqaddr_t a;

@@ -255,7 +259,8 @@
 }

 int
-pconnPop6(const char *host, u_short port, const char *domain, sqaddr_t *client_address, int *idle)
+pconnPop6(const char *host, u_short port, const char *domain,
+  sqaddr_t *client_address, int *idle)
 {
     struct _pconn *p;
     hash_link *hptr;
@@ -276,7 +281,8 @@
 }

 int
-pconnPop(const char *host, u_short port, const char *domain, struct in_addr *client_address, u_short client_port, int *idle)
+pconnPop(const char *host, u_short port, const char *domain,
+  struct in_addr *client_address, u_short client_port, int *idle)
 {
        sqaddr_t a;
        int r;
@@ -294,7 +300,8 @@
 }

 static hash_link *
-pconnLookup(const char *peer, u_short port, const char *domain, sqaddr_t *client_address)
+pconnLookup(const char *peer, u_short port, const char *domain,
+  sqaddr_t *client_address)
 {
     LOCAL_ARRAY(char, key, PCONN_KEYLEN);
     assert(table != NULL);

--
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