patch-1.3.15 linux/net/netrom/af_netrom.c

Next file: linux/net/netrom/nr_route.c
Previous file: linux/net/ipx/af_ipx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.14/linux/net/netrom/af_netrom.c linux/net/netrom/af_netrom.c
@@ -1006,7 +1006,7 @@
 	return 1;
 }
 
-static int nr_sendto(struct socket *sock, void *ubuf, int len, int noblock,
+static int nr_sendto(struct socket *sock, const void *ubuf, int len, int noblock,
 	unsigned flags, struct sockaddr *usip, int addr_len)
 {
 	struct sock *sk = (struct sock *)sock->data;
@@ -1112,12 +1112,12 @@
 	return len;
 }
 
-static int nr_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags)
+static int nr_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
 {
 	return nr_sendto(sock, ubuf, size, noblock, flags, NULL, 0);
 }
 
-static int nr_write(struct socket *sock, char *ubuf, int size, int noblock)
+static int nr_write(struct socket *sock, const char *ubuf, int size, int noblock)
 {
 	return nr_send(sock, ubuf, size, noblock, 0);
 }
@@ -1288,7 +1288,7 @@
 {
 	struct sock *s;
 	struct device *dev;
-	char *devname;
+	const char *devname;
 	int len = 0;
 	off_t pos = 0;
 	off_t begin = 0;

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