patch-1.3.15 linux/include/linux/net.h

Next file: linux/include/linux/netdevice.h
Previous file: linux/include/linux/msdos_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.14/linux/include/linux/net.h linux/include/linux/net.h
@@ -102,18 +102,18 @@
 			 int *usockaddr_len, int peer);
   int	(*read)		(struct socket *sock, char *ubuf, int size,
 			 int nonblock);
-  int	(*write)	(struct socket *sock, char *ubuf, int size,
+  int	(*write)	(struct socket *sock, const char *ubuf, int size,
 			 int nonblock);
   int	(*select)	(struct socket *sock, int sel_type,
 			 select_table *wait);
   int	(*ioctl)	(struct socket *sock, unsigned int cmd,
 			 unsigned long arg);
   int	(*listen)	(struct socket *sock, int len);
-  int	(*send)		(struct socket *sock, void *buff, int len, int nonblock,
+  int	(*send)		(struct socket *sock, const void *buff, int len, int nonblock,
 			 unsigned flags);
   int	(*recv)		(struct socket *sock, void *buff, int len, int nonblock,
 			 unsigned flags);
-  int	(*sendto)	(struct socket *sock, void *buff, int len, int nonblock,
+  int	(*sendto)	(struct socket *sock, const void *buff, int len, int nonblock,
 			 unsigned flags, struct sockaddr *, int addr_len);
   int	(*recvfrom)	(struct socket *sock, void *buff, int len, int nonblock,
 			 unsigned flags, struct sockaddr *, int *addr_len);
@@ -127,7 +127,7 @@
 };
 
 struct net_proto {
-	char *name;		/* Protocol name */
+	const char *name;		/* Protocol name */
 	void (*init_func)(struct net_proto *);	/* Bootstrap */
 };
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this