* [PATCH] Fix wrong sizeof
@ 2009-10-02 9:06 Jean Delvare
2009-10-02 15:12 ` Steven Toth
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2009-10-02 9:06 UTC (permalink / raw)
To: LMML
Which is why I have always preferred sizeof(struct foo) over
sizeof(var).
Signed-off-by: Jean Delvare <khali@linux-fr.org>
---
linux/drivers/media/dvb/dvb-usb/ce6230.c | 2 +-
linux/drivers/media/video/saa7164/saa7164-cmd.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- v4l-dvb.orig/linux/drivers/media/dvb/dvb-usb/ce6230.c 2009-09-26 13:10:08.000000000 +0200
+++ v4l-dvb/linux/drivers/media/dvb/dvb-usb/ce6230.c 2009-10-02 11:03:17.000000000 +0200
@@ -105,7 +105,7 @@ static int ce6230_i2c_xfer(struct i2c_ad
int i = 0;
struct req_t req;
int ret = 0;
- memset(&req, 0, sizeof(&req));
+ memset(&req, 0, sizeof(req));
if (num > 2)
return -EINVAL;
--- v4l-dvb.orig/linux/drivers/media/video/saa7164/saa7164-cmd.c 2009-09-26 13:10:09.000000000 +0200
+++ v4l-dvb/linux/drivers/media/video/saa7164/saa7164-cmd.c 2009-10-02 11:03:21.000000000 +0200
@@ -347,7 +347,7 @@ int saa7164_cmd_send(struct saa7164_dev
/* Prepare some basic command/response structures */
memset(&command_t, 0, sizeof(command_t));
- memset(&response_t, 0, sizeof(&response_t));
+ memset(&response_t, 0, sizeof(response_t));
pcommand_t = &command_t;
presponse_t = &response_t;
command_t.id = id;
--
Jean Delvare
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix wrong sizeof
2009-10-02 9:06 [PATCH] Fix wrong sizeof Jean Delvare
@ 2009-10-02 15:12 ` Steven Toth
0 siblings, 0 replies; 2+ messages in thread
From: Steven Toth @ 2009-10-02 15:12 UTC (permalink / raw)
To: LMML; +Cc: Jean Delvare
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-02 15:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-02 9:06 [PATCH] Fix wrong sizeof Jean Delvare
2009-10-02 15:12 ` Steven Toth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.