diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 19:19:56 -0300 | 
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 19:19:56 -0300 | 
| commit | fbf360db614483cc1655e47be4744b5bd00d54f5 (patch) | |
| tree | 15cf74264e91ede73e5d4a0e18a3d32091ceddc2 /modules/devices/storage.c | |
| parent | 647775860805ea26a377c10d1490686a6f7a3434 (diff) | |
| parent | 0574020490ffae5686b0c75d7753bfbcf2286114 (diff) | |
Update upstream source from tag 'upstream/2.0.17pre'
Update to upstream version '2.0.17pre'
with Debian dir 5d26fb98f3078817a456822b48c33e4ffac5c49e
Diffstat (limited to 'modules/devices/storage.c')
| -rw-r--r-- | modules/devices/storage.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/devices/storage.c b/modules/devices/storage.c index bbf9b195..c0bee0d2 100644 --- a/modules/devices/storage.c +++ b/modules/devices/storage.c @@ -632,7 +632,7 @@ void __scan_ide_devices(void)  	    if (!proc_ide)  	        continue; -	    (void) fgets(buf, 128, proc_ide); +	    char *cc=fgets(buf, 128, proc_ide);  	    fclose(proc_ide);  	    buf[strlen(buf) - 1] = 0; @@ -648,7 +648,7 @@ void __scan_ide_devices(void)  	        continue;              } -	    (void) fgets(buf, 128, proc_ide); +	    char *c=fgets(buf, 128, proc_ide);  	    fclose(proc_ide);  	    buf[strlen(buf) - 1] = 0; @@ -717,7 +717,7 @@ void __scan_ide_devices(void)  	    if (g_file_test(device, G_FILE_TEST_EXISTS)) {  		proc_ide = fopen(device, "r");  		if (proc_ide) { -                    (void) fscanf(proc_ide, "%d", &cache); +                    int c=fscanf(proc_ide, "%d", &cache);                      fclose(proc_ide);                  } else {                      cache = 0; @@ -731,7 +731,7 @@ void __scan_ide_devices(void)  		proc_ide = fopen(device, "r");  		if (proc_ide) { -                    (void) fgets(buf, 64, proc_ide); +                    char *c=fgets(buf, 64, proc_ide);                      for (tmp = buf; *tmp; tmp++) {                          if (*tmp >= '0' && *tmp <= '9')                              break; @@ -739,7 +739,7 @@ void __scan_ide_devices(void)                      pgeometry = g_strdup(g_strstrip(tmp)); -                    (void) fgets(buf, 64, proc_ide); +                    char *cc=fgets(buf, 64, proc_ide);                      for (tmp = buf; *tmp; tmp++) {                          if (*tmp >= '0' && *tmp <= '9')                              break;  | 
