patch-1.3.15 linux/net/ax25/af_ax25.c
Next file: linux/net/core/dev.c
Previous file: linux/net/appletalk/ddp.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Tue Aug 1 10:02:48 1995
- Orig file:
v1.3.14/linux/net/ax25/af_ax25.c
- Orig date:
Mon Jul 31 15:59:03 1995
diff -u --recursive --new-file v1.3.14/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -1566,7 +1566,7 @@
return ax25_rcv(skb, dev, &port_call, ptype);
}
-static int ax25_sendto(struct socket *sock, void *ubuf, int len, int noblock,
+static int ax25_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;
@@ -1716,12 +1716,12 @@
}
-static int ax25_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags)
+static int ax25_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
{
return ax25_sendto(sock, ubuf, size, noblock, flags, NULL, 0);
}
-static int ax25_write(struct socket *sock, char *ubuf, int size, int noblock)
+static int ax25_write(struct socket *sock, const char *ubuf, int size, int noblock)
{
return ax25_send(sock, ubuf, size, noblock, 0);
}
@@ -1910,7 +1910,7 @@
{
ax25_cb *ax25;
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