Changeset 1180


Ignore:
Timestamp:
Feb 18, 2007, 4:41:30 PM (13 years ago)
Author:
bruno
Message:

Compiler warning fixes

Location:
branches/stable/mondo/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-archive.c

    r1169 r1180  
    29452945    /*@ buffers ********************************************* */
    29462946    char *tmp = NULL;
    2947     char *tmp1 = NULL;
    29482947    char *szmsg = NULL;
    29492948    char *cdrom_dev = NULL;
  • branches/stable/mondo/src/common/libmondo-devices.c

    r1168 r1180  
    383383    /*@ ints ******************************************************* */
    384384    int res = 0;
    385     size_t n = 0;
    386385
    387386    /*@ pointers *************************************************** */
     
    14371436{
    14381437    char *tmp = NULL;
    1439     char *tmp1 = NULL;
    1440     char *tmp2 = NULL;
    14411438    char *sz_size = NULL;
    14421439    char *command = NULL;
     
    21452142    char *mountdev = NULL;
    21462143    char *tmp = NULL;
    2147     char *tmp1 = NULL;
    21482144
    21492145    assert(bkpinfo != NULL);
  • branches/stable/mondo/src/common/libmondo-filelist.c

    r1164 r1180  
    822822    char *fname = NULL;
    823823    char *tmp = NULL;
    824     char *tmp1 = NULL;
    825824    int pos_in_fname = 0;
    826825    size_t n = 0;
     
    15121511    char *q = NULL;
    15131512
    1514     char *tmp1 = NULL;
    1515     char *tmp2 = NULL;
    15161513    char *sz_datefile = NULL;
    15171514    char *sz_filelist = NULL;
  • branches/stable/mondo/src/common/libmondo-files.c

    r1173 r1180  
    4848    char *command = NULL;
    4949    char *tmp = NULL;
    50     size_t n = 0;
    5150
    5251    /*@ pointers **************************************************** */
     
    450449    /*@ pointers **************************************************** */
    451450    FILE *fin;
    452     size_t n = 0;
    453451
    454452    /*@ end vars **************************************************** */
  • branches/stable/mondo/src/common/libmondo-mountlist.c

    r1173 r1180  
    378378    /*@ buffers ******************************************************** */
    379379    char *tmp = NULL;
    380     char *tmp1 = NULL;
    381380    char *device = NULL;
    382381
     
    551550    struct list_of_disks *drivelist = NULL;
    552551    char *tmp = NULL;
    553     char *tmp1 = NULL;
    554552    char *flaws_str = NULL;
    555553
     
    644642    char *curr_mountpoint = NULL;
    645643    char *tmp = NULL;
    646     char *tmp1 = NULL;
    647644
    648645    assert(mountlist != NULL);
  • branches/stable/mondo/src/common/libmondo-raid.c

    r1174 r1180  
    940940  char *string = NULL;
    941941  char *pos = NULL;
    942   char type = NULL;
     942  char type = ' ';
    943943  char *strtmp = NULL;
    944944
  • branches/stable/mondo/src/common/libmondo-string.c

    r1178 r1180  
    7878{
    7979    char *scratch = NULL;
    80     char *out = NULL;
    81     char *p = NULL;
    8280    int i = 0;                      /* purpose */
    8381    int len = 0;                    /* purpose */
     
    108106
    109107
    110 
    111 
    112 inline void turn_wildcard_chars_into_literal_chars(char *sout, char *sin)
     108inline void turn_wildcard_chars_into_literal_chars(char *strout, char *strin)
    113109{
    114110    char *p, *q;
    115111
    116     for (p = sin, q = sout; *p != '\0'; *(q++) = *(p++)) {
     112    for (p = strin, q = strout; *p != '\0'; *(q++) = *(p++)) {
    117113        if (strchr("[]*?", *p)) {
    118114            *(q++) = '\\';
     
    329325
    330326    /*@ char     ******************************************************** */
    331     char p = NULL;
     327    char p = ' ';
    332328
    333329    assert(label != NULL);
     
    884880    /*@ int *********************************************** */
    885881    int percentage = 0;
    886     int i = 0;
    887882    int j = 0;
    888883
  • branches/stable/mondo/src/include/mr_str.h

    r1178 r1180  
    1414extern char *mr_stresc(char *instr, char *toesc, const char escchr);
    1515extern inline char *mr_date(void);
     16extern void mr_strip_spaces(char *in_out):
    1617
    1718#endif                          /* MR_STR_H */
Note: See TracChangeset for help on using the changeset viewer.