Ignore:
Timestamp:
Aug 18, 2009, 3:13:54 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3335@localhost: bruno | 2009-08-08 23:04:12 +0200

  • Change mr_asprintf to avoid the need of pointer and be consistent with the other mr_mem functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-fork.c

    r2323 r2324  
    252252    /*@ int ********************************************************* */
    253253    int res;
    254     int i;
    255254    bool log_if_failure = FALSE;
    256255    bool log_if_success = FALSE;
     
    354353
    355354    /*@ buffers **************************************************** */
    356     char *tmp = NULL;
    357355    char *command = NULL;
    358356    char *lockfile = NULL;
     
    367365    mr_asprintf(command, "echo hi > %s ; %s >> %s 2>> %s; res=$?; sleep 1; rm -f %s; exit $res", lockfile, basic_call, MONDO_LOGFILE, MONDO_LOGFILE, lockfile);
    368366    open_evalcall_form(what_i_am_doing);
    369     mr_asprintf(tmp, "Executing %s", basic_call);
    370     log_msg(2, tmp);
    371     mr_free(tmp);
     367    log_msg(2, "Executing %s", basic_call);
    372368
    373369    if (!(fin = popen(command, "r"))) {
    374370        log_OS_error("Unable to popen-in command");
    375         mr_asprintf(tmp, "Failed utterly to call '%s'", command);
    376         log_to_screen(tmp);
    377         mr_free(tmp);
     371        log_to_screen("Failed utterly to call '%s'", command);
    378372        mr_free(command);
    379373        mr_free(lockfile);
Note: See TracChangeset for help on using the changeset viewer.