public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Chris AtLee <chris@atlee.ca>
To: Linux MTD <linux-mtd@lists.infradead.org>
Subject: Teeny patch
Date: 08 Jul 2003 01:40:54 -0400	[thread overview]
Message-ID: <1057642854.847.27.camel@geb> (raw)

[-- 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;
 

             reply	other threads:[~2003-07-08  5:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-08  5:40 Chris AtLee [this message]
2003-07-08  8:16 ` Teeny patch David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1057642854.847.27.camel@geb \
    --to=chris@atlee.ca \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox