Ignore:
Timestamp:
Aug 18, 2009, 2:37:58 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3333@localhost: bruno | 2009-08-08 01:58:31 +0200

  • bkpinfo->prefix is now dynamically assigned
  • Fix newt mondoarchive
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondoarchive/mondoarchive.c

    r2321 r2322  
    3232
    3333/***************** global vars, used only by main.c ******************/
    34 long diffs;
     34long diffs = 0L;
    3535
    3636extern t_bkptype g_backup_media_type;
     
    167167    char *tmp = NULL;
    168168    char *tmp1 = NULL;
    169     int res, retval;
     169    int res = 0;
     170    int i = 0;
     171    int retval = 0;
    170172    char *say_at_end = NULL;
    171 
    172 /* Initialize variables */
    173 
    174     res = 0;
    175     retval = 0;
    176     diffs = 0;
    177173
    178174    printf("Initializing...\n");
     
    191187    } else {
    192188        g_text_mode = TRUE;
     189        /* newt mode if -g specified on cli */
     190        for (i = 0; i < argc; i++) {
     191            if (!strcmp(argv[i],"-g")) {
     192                g_text_mode = FALSE;
     193            }
     194        }
    193195    }
    194196    setup_newt_stuff();
     
    235237    if (argc == 4 && !strcmp(argv[1], "getfattr")) {
    236238        g_loglevel = 10;
    237         g_text_mode = TRUE;
    238239        if (!strstr(argv[2], "filelist")) {
    239240            printf("Sorry - filelist goes first\n");
     
    438439
    439440    if (!g_text_mode) {
    440         popup_and_OK
    441             ("Mondo Archive has finished its run. Please press ENTER to return to the shell prompt.");
     441        popup_and_OK("Mondo Archive has finished its run. Please press ENTER to return to the shell prompt.");
    442442        log_to_screen("See %s for details of backup run.", MONDO_LOGFILE);
    443443    } else {
Note: See TracChangeset for help on using the changeset viewer.