aboutsummaryrefslogtreecommitdiff
path: root/arch/linux/common/storage.h
diff options
context:
space:
mode:
authorAgney Lopes Roth Ferraz <agney@debian.org>2009-09-24 15:13:54 -0300
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:49 -0500
commit0bd39c5982a7776caae412f93f9dd2abf0b3eaea (patch)
tree0fdf3718ea01d3aa834e850c983c65edce14a583 /arch/linux/common/storage.h
parent1b6665085f47e0a86e4bebd5e313a2ab63600eb4 (diff)
parent7c47b5b9584f5011aeba18d7e1b26b3d3124825f (diff)
Import Debian changes 0.5.1-1
hardinfo (0.5.1-1) unstable; urgency=low * New upstream version. (Closes: #530290, #517591)
Diffstat (limited to 'arch/linux/common/storage.h')
-rw-r--r--arch/linux/common/storage.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/linux/common/storage.h b/arch/linux/common/storage.h
index 5208f028..06593a09 100644
--- a/arch/linux/common/storage.h
+++ b/arch/linux/common/storage.h
@@ -180,7 +180,7 @@ __scan_ide_devices(void)
cache = 0;
proc_ide = fopen(device, "r");
- fgets(buf, 128, proc_ide);
+ (void)fgets(buf, 128, proc_ide);
fclose(proc_ide);
buf[strlen(buf) - 1] = 0;
@@ -191,7 +191,7 @@ __scan_ide_devices(void)
device = g_strdup_printf("/proc/ide/hd%c/media", iface);
proc_ide = fopen(device, "r");
- fgets(buf, 128, proc_ide);
+ (void)fgets(buf, 128, proc_ide);
fclose(proc_ide);
buf[strlen(buf) - 1] = 0;
@@ -257,7 +257,7 @@ __scan_ide_devices(void)
device = g_strdup_printf("/proc/ide/hd%c/cache", iface);
if (g_file_test(device, G_FILE_TEST_EXISTS)) {
proc_ide = fopen(device, "r");
- fscanf(proc_ide, "%d", &cache);
+ (void)fscanf(proc_ide, "%d", &cache);
fclose(proc_ide);
}
g_free(device);
@@ -268,7 +268,7 @@ __scan_ide_devices(void)
proc_ide = fopen(device, "r");
- fgets(buf, 64, proc_ide);
+ (void)fgets(buf, 64, proc_ide);
for (tmp = buf; *tmp; tmp++) {
if (*tmp >= '0' && *tmp <= '9')
break;
@@ -276,7 +276,7 @@ __scan_ide_devices(void)
pgeometry = g_strdup(g_strstrip(tmp));
- fgets(buf, 64, proc_ide);
+ (void)fgets(buf, 64, proc_ide);
for (tmp = buf; *tmp; tmp++) {
if (*tmp >= '0' && *tmp <= '9')
break;