Changeset 2229 in MondoRescue


Ignore:
Timestamp:
Jun 17, 2009, 8:42:12 PM (15 years ago)
Author:
Bruno Cornec
Message:

Fix various multiple compile bugs/warnings around log_it, opt flags and mr_asprintf

Location:
branches/2.2.9/mondo/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-cli.c

    r2226 r2229  
    997997            p--;
    998998            *p = '\0';
    999             mr_asprintf(q,"%s",bkpinfo->nfs_mount);
     999            mr_asprintf(&q,"%s",bkpinfo->nfs_mount);
    10001000            bkpinfo->nfs_user = q;
    10011001            strcpy(bkpinfo->nfs_mount,tmp);
     
    14971497            /*log_it("Invalid option: %c\n",optopt); */
    14981498        } else {
    1499             if (flag_set[optopt]) {
     1499            if (flag_set[opt]) {
    15001500                bad_switches = TRUE;
    15011501                mr_asprintf(&tmp, "Switch -%c previously defined as %s\n", opt,
    1502                         flag_val[i]);
     1502                        flag_val[opt]);
    15031503                log_to_screen(tmp);
    15041504                paranoid_free(tmp);
  • branches/2.2.9/mondo/src/common/libmondo-stream.c

    r2227 r2229  
    568568    }
    569569    if (curr < 0) {
    570         log_it("%s",
    571             ("Not far enough into tape to start deleting old archives from collection.");
     570        log_it("%s","Not far enough into tape to start deleting old archives from collection.");
    572571        return (0);
    573572    }
  • branches/2.2.9/mondo/src/mondorestore/mondorestore.c

    r2227 r2229  
    25222522            }
    25232523        } else {
    2524             log_it("%s",
    2525                 ("No biggiefiles selected. So, no biggie-EXATs to set.");
     2524            log_it("%s","No biggiefiles selected. So, no biggie-EXATs to set.");
    25262525        }
    25272526    }
Note: See TracChangeset for help on using the changeset viewer.