summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-08-07 18:22:26 +0000
committerUlrich Drepper <drepper@redhat.com>2004-08-07 18:22:26 +0000
commitd3c99ad106cf34752247e03182ad36681af546f8 (patch)
treea5dce16e4f1adfe02d30ea3d1e5f281197585001 /inet
parent65e70412adc8ef60b7d4b1cf6116a29eddbdb7b2 (diff)
downloadglibc-d3c99ad106cf34752247e03182ad36681af546f8.tar.gz
glibc-d3c99ad106cf34752247e03182ad36681af546f8.tar.xz
glibc-d3c99ad106cf34752247e03182ad36681af546f8.zip
Update.
	* inet/netinet/in.h: Add more const to the setipv4soucefilter,
	getsourcefilter, and setsourcefilter parameter list.
	* sysdeps/generic/setipv4sourcefilter.c: Likewise.
	* sysdeps/generic/getsourcefilter.c: Likewise.
	* sysdeps/generic/setsourcefilter.c: Likewise.
	* sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
	* sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
	* sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
Diffstat (limited to 'inet')
-rw-r--r--inet/netinet/in.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index 0922dc789b..5034db1206 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -487,21 +487,24 @@ extern int getipv4sourcefilter (int __s, struct in_addr __interface,
 /* Set IPv4 source filter.  */
 extern int setipv4sourcefilter (int __s, struct in_addr __interface,
 				struct in_addr __group, uint32_t __fmode,
-				uint32_t __numsrc, struct in_addr *__slist)
+				uint32_t __numsrc,
+				__const struct in_addr *__slist)
      __THROW;
 
 
 /* Get source filter.  */
 extern int getsourcefilter (int __s, uint32_t __interface,
-			    struct sockaddr *__group, socklen_t __grouplen,
-			    uint32_t *__fmode, uint32_t *__numsrc,
+			    __const struct sockaddr *__group,
+			    socklen_t __grouplen, uint32_t *__fmode,
+			    uint32_t *__numsrc,
 			    struct sockaddr_storage *__slist) __THROW;
 
 /* Set source filter.  */
 extern int setsourcefilter (int __s, uint32_t __interface,
-			    struct sockaddr *__group, socklen_t __grouplen,
-			    uint32_t __fmode, uint32_t __numsrc,
-			    struct sockaddr_storage *__slist) __THROW;
+			    __const struct sockaddr *__group,
+			    socklen_t __grouplen, uint32_t __fmode,
+			    uint32_t __numsrc,
+			    __const struct sockaddr_storage *__slist) __THROW;
 #endif	/* use GNU */
 
 __END_DECLS