patch-2.1.8 linux/net/netlink.c

Next file: linux/net/netsyms.c
Previous file: linux/net/ipv6/udp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.7/linux/net/netlink.c linux/net/netlink.c
@@ -82,7 +82,8 @@
  *	Write a message to the kernel side of a communication link
  */
  
-static int netlink_write(struct inode * inode, struct file * file, const char * buf, int count)
+static long netlink_write(struct inode * inode, struct file * file,
+			  const char * buf, unsigned long count)
 {
 	unsigned int minor = MINOR(inode->i_rdev);
 	struct sk_buff *skb;
@@ -96,7 +97,8 @@
  *	Read a message from the kernel side of the communication link
  */
 
-static int netlink_read(struct inode * inode, struct file * file, char * buf, int count)
+static long netlink_read(struct inode * inode, struct file * file, char * buf,
+			 unsigned long count)
 {
 	unsigned int minor = MINOR(inode->i_rdev);
 	struct sk_buff *skb;
@@ -124,8 +126,8 @@
 	return count;
 }
 
-static int netlink_lseek(struct inode * inode, struct file * file,
-		    off_t offset, int origin)
+static loff_t netlink_lseek(struct inode * inode, struct file * file,
+			    loff_t offset, int origin)
 {
 	return -ESPIPE;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov