Changeset 3893 in MondoRescue for branches/3.3/mondo/src/lib/mr_str.c


Ignore:
Timestamp:
Mar 13, 2024, 4:49:30 PM (8 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/lib/mr_str.c

    r3892 r3893  
    2626 * @note this function allocates memory that needs to be freed by caller
    2727 **/
    28 char *mr_strtok(char *instr, const char *delims, int *lastpos) {
     28char *mr_strtok(char *instr, const char *delims, size_t *lastpos) {
    2929
    3030char *token = NULL;
     
    5757*lastpos = *lastpos + pos1 + pos2 + 1;
    5858
    59 return token;
     59return(token);
    6060}
    6161
     
    205205char *output = NULL;
    206206char *tmp = NULL;
    207 int i = 0;
     207size_t i = 0;
    208208
    209209mr_asprintf(output, "%s", in);
Note: See TracChangeset for help on using the changeset viewer.