Ignore:
Timestamp:
Sep 9, 2007, 1:00:49 AM (12 years ago)
Author:
Bruno Cornec
Message:

remove g_loglevel and replaced with mr_conf->log_level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondoarchive/mondo-cli.c

    r1609 r1625  
    1919#include "mr_msg.h"
    2020#include "mr_gettext.h"
     21#include "mr_conf.h"
    2122
    2223//static char cvsid[] = "$Id$";
    2324
    24 extern int g_loglevel;
    2525extern bool g_text_mode;
    2626extern char g_startdir[MAX_STR_LEN];    ///< ????? @bug ?????
     
    2828extern char g_tmpfs_mountpt[MAX_STR_LEN];
    2929extern bool g_sigpipe;
     30
     31extern struct mr_ar_conf *mr_conf = NULL;
    3032
    3133/*@ file pointer **************************************************/
     
    220222    }
    221223    if (flag_set['K']) {
    222         g_loglevel = atoi(flag_val['K']);
    223         if (g_loglevel < 3) {
    224             g_loglevel = 3;
     224        mr_conf->log_level = atoi(flag_val['K']);
     225        if (mr_conf->log_level < 3) {
     226            mr_conf->log_level = 3;
    225227        }
    226228    }
Note: See TracChangeset for help on using the changeset viewer.