Ignore:
Timestamp:
Feb 6, 2007, 11:10:01 AM (14 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/common/libmondo-filelist.c

    r1082 r1103  
    420420    }
    421421    filelist->ch = '\0';
    422     mr_free(filelist);
     422    mr_free((void*) filelist);
    423423    depth--;
    424424    if (depth == 0) {
     
    429429
    430430
    431 int call_exe_and_pipe_output_to_fd(char *syscall, FILE * pout)
     431int call_exe_and_pipe_output_to_fd(char *sys_call, FILE * pout)
    432432{
    433433    FILE *pattr;
    434434    char *tmp;
    435     pattr = popen(syscall, "r");
     435    pattr = popen(sys_call, "r");
    436436    if (!pattr) {
    437         log_msg(1, "Failed to open fattr() %s", syscall);
     437        log_msg(1, "Failed to open fattr() %s", sys_call);
    438438        return (1);
    439439    }
    440440    if (feof(pattr)) {
    441         log_msg(1, "Failed to call fattr() %s", syscall);
     441        log_msg(1, "Failed to call fattr() %s", sys_call);
    442442        paranoid_pclose(pattr);
    443443        return (2);
     
    461461    FILE *pout;
    462462    char *pout_command;
    463     char *syscall;
     463    char *sys_call;
    464464    char *file_to_analyze;
    465465    char *strtmp = NULL;
     
    487487        log_msg(8, "Analyzing %s", file_to_analyze);
    488488        asprintf(&strtmp, syscall_sprintf, mr_stresc(file_to_analyze, "`$\\\"", '\\'));
    489         asprintf(&syscall, "%s 2>> /dev/null", strtmp); // " MONDO_LOGFILE);
     489        asprintf(&sys_call, "%s 2>> /dev/null", strtmp);    // " MONDO_LOGFILE);
    490490        mr_free(strtmp);
    491         call_exe_and_pipe_output_to_fd(syscall, pout);
    492         mr_free(syscall);
     491        call_exe_and_pipe_output_to_fd(sys_call, pout);
     492        mr_free(sys_call);
    493493    }
    494494    paranoid_fclose(fin);
Note: See TracChangeset for help on using the changeset viewer.