From 2d0724c17ece708e93126345fb24f4683f51ed17 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 29 Mar 2009 10:38:31 -0300 Subject: Cleanups --- hardinfo2/arch/linux/common/storage.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'hardinfo2/arch/linux/common/storage.h') diff --git a/hardinfo2/arch/linux/common/storage.h b/hardinfo2/arch/linux/common/storage.h index 5208f028..06593a09 100644 --- a/hardinfo2/arch/linux/common/storage.h +++ b/hardinfo2/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; -- cgit v1.2.3