Ignore:
Timestamp:
Mar 13, 2024, 4:49:30 PM (7 weeks ago)
Author:
Bruno Cornec
Message:

Remove more warnings - switch and size_t/int comparisons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-devices.c

    r3892 r3893  
    128128    int i = 0;
    129129    int mount_cnt = 0;
    130     int lastpos = 0;
     130    size_t lastpos = 0;
    131131    char *mounted_file_system = NULL;
    132132    char *command = NULL;
     
    249249    int i = 0;
    250250    int c = 0;
    251     int lastpos = 0;
     251    size_t lastpos = 0;
    252252    char *VG = NULL;
    253253    char *tmp = NULL;
     
    729729    default:
    730730        mr_asprintf(output, "%s", "default");
     731        break;
    731732    }
    732733    return (output);
     
    16601661
    16611662char *token = NULL;
    1662 int lastpos = 0;
     1663size_t lastpos = 0;
    16631664char *mounted_on_dsf = NULL;
    16641665char *not_mounted_on_dsf = NULL;
     
    17461747        mr_free(tmp);
    17471748        mr_free(tmp2);
     1749        break;
     1750    default:
     1751        fatal_error("Error processing -I or -E option");
    17481752        break;
    17491753    }
     
    24132417        break;
    24142418    default:
    2415         fatal_error("I, Mojo Jojo, shall defeat those pesky Powerpuff Girls!");
     2419    case none:
     2420        fatal_error("Unknown backup_media_type");
     2421        break;
    24162422    }
    24172423
Note: See TracChangeset for help on using the changeset viewer.