All of lore.kernel.org
 help / color / mirror / Atom feed
From: hare@suse.de (Hannes Reinecke)
Subject: [PATCH 2/6] nvme-vendor: fixup c99 declaration in huawei plugin
Date: Fri, 17 Aug 2018 09:29:04 +0200	[thread overview]
Message-ID: <20180817072908.56784-3-hare@suse.de> (raw)
In-Reply-To: <20180817072908.56784-1-hare@suse.de>

We can't use c99 declaration with older compilers.

Signed-off-by: Hannes Reinecke <hare at suse.com>
---
 huawei-nvme.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/huawei-nvme.c b/huawei-nvme.c
index f305405..f91d3e3 100644
--- a/huawei-nvme.c
+++ b/huawei-nvme.c
@@ -245,12 +245,13 @@ static void huawei_print_list_item(struct huawei_list_item list_item,
 	char usage[128];
 	char nguid_buf[2 * sizeof(list_item.ns.nguid) + 1];
 	char *nguid = nguid_buf;
+	int i;
 
 	sprintf(usage,"%6.2f %2sB / %6.2f %2sB", nuse, u_suffix,
 		nsze, s_suffix);
 
 	memset(nguid, 0, sizeof(nguid_buf));
-	for (int i = 0; i < sizeof(list_item.ns.nguid); i++)
+	for (i = 0; i < sizeof(list_item.ns.nguid); i++)
 		nguid += sprintf(nguid, "%02x", list_item.ns.nguid[i]);
 
 	printf("%-*.*s %-*.*s %-*.*s %-*d %-*.*s %-*.*s\n",
-- 
2.13.7

  parent reply	other threads:[~2018-08-17  7:29 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-17  7:29 [PATCH 0/6] nvme-cli fixes and ANA updates Hannes Reinecke
2018-08-17  7:29 ` [PATCH 1/6] nvme-ana-log: fixup compiler warning in show_ana_log() Hannes Reinecke
2018-08-17  8:09   ` Christoph Hellwig
2018-08-17 21:44     ` Chaitanya Kulkarni
2018-08-17 21:55       ` Keith Busch
2018-08-17  7:29 ` Hannes Reinecke [this message]
2018-08-17  8:09   ` [PATCH 2/6] nvme-vendor: fixup c99 declaration in huawei plugin Christoph Hellwig
2018-08-17 21:56     ` Keith Busch
2018-08-17  7:29 ` [PATCH 3/6] nvme-discover: sanitize options Hannes Reinecke
2018-08-17  8:10   ` Christoph Hellwig
2018-08-17  7:29 ` [PATCH 4/6] nvme-discover: Retry discovery log if the generation counter changes Hannes Reinecke
2018-08-17  8:11   ` Christoph Hellwig
2018-08-17 10:06     ` Hannes Reinecke
2018-08-17  7:29 ` [PATCH 5/6] nvme-list-subsys: Print PCIe controller address Hannes Reinecke
2018-08-17  8:12   ` Christoph Hellwig
2018-08-17 10:06     ` Hannes Reinecke
2018-08-17  7:29 ` [PATCH 6/6] nvme-list-subsys: Add device name argument and print out ANA state Hannes Reinecke
2018-08-17  8:12   ` Christoph Hellwig
2018-08-17 22:14   ` Chaitanya Kulkarni
2018-08-17 21:58 ` [PATCH 0/6] nvme-cli fixes and ANA updates Keith Busch

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=20180817072908.56784-3-hare@suse.de \
    --to=hare@suse.de \
    /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 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.