Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15:Update
nvme-cli.11415
0041-nvme-vendor-fixup-c99-declaration-in-huawe...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0041-nvme-vendor-fixup-c99-declaration-in-huawei-plugin.patch of Package nvme-cli.11415
From 75dded57e11ff9573d8531e9e4400f9e0b7ce2c4 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Fri, 17 Aug 2018 09:29:04 +0200 Subject: [PATCH] nvme-vendor: fixup c99 declaration in huawei plugin We can't use c99 declaration with older compilers. Signed-off-by: Hannes Reinecke <hare@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.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor