From: adilger Date: Mon, 21 Oct 2002 21:45:15 +0000 (+0000) Subject: The curse of copy-n-paste. Fix compile warnings and maybe code too. X-Git-Tag: 0.5.15~28 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8a1b0f6f50e4883a98df71967eebfd7490680e49;p=fs%2Flustre-release.git The curse of copy-n-paste. Fix compile warnings and maybe code too. --- diff --git a/lustre/include/linux/lustre_lib.h b/lustre/include/linux/lustre_lib.h index 9fb8c2f..923260d 100644 --- a/lustre/include/linux/lustre_lib.h +++ b/lustre/include/linux/lustre_lib.h @@ -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)