Changeset 2202 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-devices.c
- Timestamp:
- May 13, 2009, 4:34:00 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2190 r2202 664 664 return (1); 665 665 } 666 for ( fgets(tmp, MAX_STR_LEN, fin); !feof(fin);667 fgets(tmp, MAX_STR_LEN, fin)) {666 for ((void)fgets(tmp, MAX_STR_LEN, fin); !feof(fin); 667 (void)fgets(tmp, MAX_STR_LEN, fin)) { 668 668 p = strchr(tmp, '\''); 669 669 if (p) { … … 698 698 log_msg(4, "Cannot run 2nd command - non-fatal, fortunately"); 699 699 } else { 700 for ( fgets(tmp, MAX_STR_LEN, fin); !feof(fin);701 fgets(tmp, MAX_STR_LEN, fin)) {700 for ((void)fgets(tmp, MAX_STR_LEN, fin); !feof(fin); 701 (void)fgets(tmp, MAX_STR_LEN, fin)) { 702 702 log_msg(5, "--> '%s'", tmp); 703 703 if (tmp[0] != ' ' && tmp[1] != ' ') { … … 1141 1141 return (FALSE); 1142 1142 } 1143 for ( fgets(incoming, MAX_STR_LEN - 1, fin); !feof(fin);1144 fgets(incoming, MAX_STR_LEN - 1, fin)) {1143 for ((void)fgets(incoming, MAX_STR_LEN - 1, fin); !feof(fin); 1144 (void)fgets(incoming, MAX_STR_LEN - 1, fin)) { 1145 1145 if (strstr(incoming, device_with_space) //> incoming 1146 1146 || strstr(incoming, device_with_tab)) // > incoming) … … 1399 1399 } 1400 1400 sprintf(tmp, "mkdir -p %s/isodir &> /dev/null", bkpinfo->tmpdir); 1401 system(tmp);1401 (void)system(tmp); 1402 1402 sprintf(tmp, "%s/%s/%s-%d.iso", bkpinfo->isodir, 1403 1403 bkpinfo->nfs_remote_dir, bkpinfo->prefix, … … 1813 1813 if (bkpinfo->disaster_recovery) { 1814 1814 sprintf(command ,"umount %s/isodir 2> /dev/null", bkpinfo->tmpdir); 1815 system(command);1815 (void)system(command); 1816 1816 if (!popup_and_get_string 1817 1817 ("NFS share", "Which remote NFS share should I mount?", … … 2452 2452 return ('\0'); 2453 2453 } 2454 for ( fgets(current_drive, MAX_STR_LEN, pdrives); !feof(pdrives);2455 fgets(current_drive, MAX_STR_LEN, pdrives)) {2454 for ((void)fgets(current_drive, MAX_STR_LEN, pdrives); !feof(pdrives); 2455 (void)fgets(current_drive, MAX_STR_LEN, pdrives)) { 2456 2456 strip_spaces(current_drive); 2457 2457 log_it("looking at drive %s's MBR", current_drive); … … 2490 2490 return ('\0'); 2491 2491 } 2492 for ( fgets(current_drive, MAX_STR_LEN, pdrives); !feof(pdrives);2493 fgets(current_drive, MAX_STR_LEN, pdrives)) {2492 for ((void)fgets(current_drive, MAX_STR_LEN, pdrives); !feof(pdrives); 2493 (void)fgets(current_drive, MAX_STR_LEN, pdrives)) { 2494 2494 strip_spaces(current_drive); 2495 2495 log_it("looking at partition %s's BR", current_drive);
Note:
See TracChangeset
for help on using the changeset viewer.