Revision: 14627
Author: adrian.chadd
Date: Mon Apr 19 16:49:15 2010
Log: Const-ify the sockaddr pointer in Init_Prefix.


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

Modified:
 /branches/LUSCA_HEAD/libcore/radix.c
 /branches/LUSCA_HEAD/libcore/radix.h

=======================================
--- /branches/LUSCA_HEAD/libcore/radix.c        Sat Apr 17 21:11:04 2010
+++ /branches/LUSCA_HEAD/libcore/radix.c        Mon Apr 19 16:49:15 2010
@@ -112,7 +112,7 @@
 }

 int
-Init_Prefix(prefix_t *pfx, u_int family, void *dest, u_int bitlen)
+Init_Prefix(prefix_t *pfx, u_int family, const void *dest, u_int bitlen)
 {
        memset(pfx, 0, sizeof(*pfx));
        if (family == AF_INET6) {
=======================================
--- /branches/LUSCA_HEAD/libcore/radix.h        Sun Apr 11 04:16:13 2010
+++ /branches/LUSCA_HEAD/libcore/radix.h        Mon Apr 19 16:49:15 2010
@@ -95,7 +95,7 @@
 } prefix_t;

 void Deref_Prefix(prefix_t *prefix);
-extern int Init_Prefix(prefix_t *prefix, u_int af_family, void *dest, u_int bitlen); +extern int Init_Prefix(prefix_t *prefix, u_int af_family, const void *dest, u_int bitlen); extern prefix_t *New_Prefix(int family, void *dest, int bitlen, prefix_t *prefix);

 /*

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