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

Next file: linux/init/main.c
Previous file: linux/include/net/protocol.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.14/linux/include/net/sock.h linux/include/net/sock.h
@@ -220,10 +220,10 @@
   void			(*close)(struct sock *sk, int timeout);
   int			(*read)(struct sock *sk, unsigned char *to,
 				int len, int nonblock, unsigned flags);
-  int			(*write)(struct sock *sk, unsigned char *to,
+  int			(*write)(struct sock *sk, const unsigned char *to,
 				 int len, int nonblock, unsigned flags);
   int			(*sendto)(struct sock *sk,
-				  unsigned char *from, int len, int noblock,
+				  const unsigned char *from, int len, int noblock,
 				  unsigned flags, struct sockaddr_in *usin,
 				  int addr_len);
   int			(*recvfrom)(struct sock *sk,

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