Changeset 1917 in MondoRescue for branches/2.2.6/mondo/src/mondoarchive/main.c


Ignore:
Timestamp:
Apr 17, 2008, 1:29:45 AM (16 years ago)
Author:
Bruno Cornec
Message:

mondo.libmondo-cli.patch (Mark Pinkerton <Mark.Pinkerton_at_emageon.com>) modified to not duplicate the newt initialization stuff (we should rather remove them in mondoarchive)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.6/mondo/src/mondoarchive/main.c

    r1885 r1917  
    116116#include "../common/mondostructures.h"
    117117#include "../common/libmondo.h"
    118 #include "mondo-cli-EXT.h"
     118#include "../common/libmondo-cli-EXT.h"
    119119#include "../common/libmondo-tools-EXT.h"
    120120#include "mondoarchive.h"
     
    137137
    138138/***************** global vars, used only by main.c ******************/
    139 bool g_skip_floppies;
     139extern bool g_skip_floppies;
    140140long diffs;
    141141
    142142extern t_bkptype g_backup_media_type;
    143143extern int g_loglevel;
     144
     145/**
     146 * Whether we're restoring from ISOs. Obviously not, since this is the
     147 * backup program.
     148 * @note You @b MUST declare this variable somewhere in your program if
     149 * you use libmondo. Otherwise the link will fail.
     150 * @ingroup globalGroup
     151 */
     152bool g_ISO_restore_mode = FALSE;
     153
     154/* Do we use extended attributes and acl ?
     155 *  * By default no, use --acl & --attr options to force their usage */
     156char *g_getfacl = NULL;
     157char *g_getfattr = NULL;
    144158
    145159/* Reference to global bkpinfo */
     
    242256}
    243257
    244 /* Return a string containing the date */
    245 char *mr_date(void) {
    246    
    247     time_t tcurr;
    248 
    249     tcurr = time(NULL);
    250     return(ctime(&tcurr));
    251 }
    252 
    253 /*-----------------------------------------------------------*/
    254 
    255 
    256258
    257259/**
Note: See TracChangeset for help on using the changeset viewer.