* Teeny patch
@ 2003-07-08 5:40 Chris AtLee
2003-07-08 8:16 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Chris AtLee @ 2003-07-08 5:40 UTC (permalink / raw)
To: Linux MTD
[-- Attachment #1: Type: text/plain, Size: 173 bytes --]
My compiler (gcc 2.95.3) complains about "int ret = ..." on line 385 of
mtd_blkdevs-24.c
Or should I be using a newer compiler? :)
Cheers
--
Chris AtLee <chris@atlee.ca>
[-- Attachment #2: patch --]
[-- Type: text/x-patch, Size: 601 bytes --]
Index: drivers/mtd/mtd_blkdevs-24.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtd_blkdevs-24.c,v
retrieving revision 1.11
diff -u -r1.11 mtd_blkdevs-24.c
--- drivers/mtd/mtd_blkdevs-24.c 23 Jun 2003 12:00:08 -0000 1.11
+++ drivers/mtd/mtd_blkdevs-24.c 8 Jul 2003 05:38:48 -0000
@@ -380,9 +380,10 @@
if (tr->getgeo) {
struct hd_geometry g;
struct gendisk *gd = &(tr->blkcore_priv->gd);
+ int ret;
memset(&g, 0, sizeof(g));
- int ret = tr->getgeo(dev, &g);
+ ret = tr->getgeo(dev, &g);
if (ret)
return ret;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Teeny patch
2003-07-08 5:40 Teeny patch Chris AtLee
@ 2003-07-08 8:16 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2003-07-08 8:16 UTC (permalink / raw)
To: Chris AtLee; +Cc: Linux MTD
On Tue, 2003-07-08 at 06:40, Chris AtLee wrote:
> My compiler (gcc 2.95.3) complains about "int ret = ..." on line 385 of
> mtd_blkdevs-24.c
>
> Or should I be using a newer compiler? :)
No, gcc 2.95.3 is fine if I don't introduce accidental C99'isms.
Patch applied; thanks.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-08 8:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-08 5:40 Teeny patch Chris AtLee
2003-07-08 8:16 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox