patch-2.0.27 linux/fs/smbfs/ioctl.c

Next file: linux/fs/smbfs/mmap.c
Previous file: linux/fs/smbfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.26/linux/fs/smbfs/ioctl.c linux/fs/smbfs/ioctl.c
@@ -1,7 +1,7 @@
 /*
  *  ioctl.c
  *
- *  Copyright (C) 1995 by Volker Lendecke
+ *  Copyright (C) 1995, 1996 by Volker Lendecke
  *
  */
 
@@ -14,20 +14,22 @@
 #include <linux/mm.h>
 
 int
-smb_ioctl (struct inode * inode, struct file * filp,
-           unsigned int cmd, unsigned long arg)
+smb_ioctl(struct inode *inode, struct file *filp,
+	  unsigned int cmd, unsigned long arg)
 {
 	int result;
 
-	switch (cmd) {
-        case SMB_IOC_GETMOUNTUID:
-                if ((result = verify_area(VERIFY_WRITE, (uid_t*) arg,
-                                          sizeof(uid_t))) != 0) {
-                        return result;
-                }
-                put_fs_word(SMB_SERVER(inode)->m.mounted_uid, (uid_t*) arg);
-                return 0;
-        default:
+	switch (cmd)
+	{
+	case SMB_IOC_GETMOUNTUID:
+		if ((result = verify_area(VERIFY_WRITE, (uid_t *) arg,
+					  sizeof(uid_t))) != 0)
+		{
+			return result;
+		}
+		put_fs_word(SMB_SERVER(inode)->m.mounted_uid, (uid_t *) arg);
+		return 0;
+	default:
 		return -EINVAL;
 	}
 }

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