Whamcloud - gitweb
The curse of copy-n-paste. Fix compile warnings and maybe code too.
authoradilger <adilger>
Mon, 21 Oct 2002 21:45:15 +0000 (21:45 +0000)
committeradilger <adilger>
Mon, 21 Oct 2002 21:45:15 +0000 (21:45 +0000)
lustre/include/linux/lustre_lib.h

index 9fb8c2f..923260d 100644 (file)
@@ -336,8 +336,8 @@ static inline int obd_ioctl_unpack(struct obd_ioctl_data *data, char *pbuf,
 
         if (!*pbuf)
                 return 1;
-        overlay = (struct obd_ioctl_data *)*pbuf;
-        memcpy(data, *pbuf, sizeof(*data));
+        overlay = (struct obd_ioctl_data *)pbuf;
+        memcpy(data, pbuf, sizeof(*data));
 
         ptr = overlay->ioc_bulk;
         if (data->ioc_inlbuf1)