Ignore:
Timestamp:
Feb 6, 2007, 11:10:01 AM (17 years ago)
Author:
Bruno Cornec
Message:

Fix again another set of compiler warnings (Michel Loiseleur <mloiseleur_at_linagora.com>)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c

    r1087 r1103  
    7676    /** int ****************************************************************/
    7777    int i = 0;
    78     int index = 0;
     78    int idx = 0;
    7979    int currline = 0;
    8080    int items = 0;
     
    109109            log_it("I don't know what this button does");
    110110        } else {
    111             index = find_next_free_index_in_disklist(disklist);
     111            idx = find_next_free_index_in_disklist(disklist);
    112112
    113113            items = disklist->entries;
    114114            strcpy(disklist->el[items].device,
    115115                   unallocated_raid_partitions->el[currline].device);
    116             disklist->el[items].index = index;
     116            disklist->el[items].index = idx;
    117117            disklist->entries = ++items;
    118118
     
    16601660    mr_free(sz_parity_disks);
    16611661    mr_free(sz_failed_disks);
    1662     mr_free(bkp_raidrec);
     1662    mr_free((void*) bkp_raidrec);
    16631663#endif
    16641664}
     
    21882188
    21892189    /** int ***************************************************************/
    2190     int index = -1;
     2190    int idx = -1;
    21912191    int pos = 0;
    21922192
     
    21982198    for (done = FALSE; !done;) {
    21992199        for (pos = 0;
    2200              pos < disklist->entries && disklist->el[pos].index <= index;
     2200             pos < disklist->entries && disklist->el[pos].index <= idx;
    22012201             pos++);
    22022202        if (pos >= disklist->entries) {
    22032203            done = TRUE;
    22042204        } else {
    2205             index = disklist->el[pos].index;
    2206         }
    2207     }
    2208     return (index + 1);
     2205            idx = disklist->el[pos].index;
     2206        }
     2207    }
     2208    return (idx + 1);
    22092209}
    22102210
     
    23892389 * Dummy function that proves that we can get to the point where Mondo is run.
    23902390 */
    2391 void nuke_mode_dummy()
     2391void nuke_mode_dummy(void)
    23922392{
    23932393
     
    28462846    mr_free(sz_res);
    28472847    mr_free(header_text);
    2848     mr_free(bkp_raidrec);
    2849     mr_free(bkp_disklist);
    2850     mr_free(bkp_raidlist);
    2851     mr_free(unallocated_raid_partitions);
     2848    mr_free((void*) bkp_raidrec);
     2849    mr_free((void*) bkp_disklist);
     2850    mr_free((void*) bkp_raidlist);
     2851    mr_free((void*) unallocated_raid_partitions);
    28522852}
    28532853#endif
Note: See TracChangeset for help on using the changeset viewer.