Changeset 1646 in MondoRescue


Ignore:
Timestamp:
Sep 24, 2007, 3:07:18 AM (17 years ago)
Author:
Bruno Cornec
Message:

Remove g_bkpinfo_DONTUSETHIS

Location:
branches/2.2.5/mondo/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/libmondo-devices.c

    r1645 r1646  
    258258
    259259extern bool g_ISO_restore_mode;
    260 extern struct s_bkpinfo *g_bkpinfo_DONTUSETHIS;
    261260extern char *g_erase_tmpdir_and_scratchdir;
    262261extern char *g_selfmounted_isodir;
  • branches/2.2.5/mondo/src/common/libmondo-mountlist.c

    r1645 r1646  
    6262/*@unused@*/
    6363//static char cvsid[] = "$Id$";
    64 
    65 /**
    66  * A global copy of @c bkpinfo, to aid in debugging. As the name implies, <em>don't use this</em>.
    67  * @ingroup globalGroup
    68  */
    69 struct s_bkpinfo *g_bkpinfo_DONTUSETHIS = NULL;
    7064
    7165/* Reference to global bkpinfo */
  • branches/2.2.5/mondo/src/common/my-stuff.h

    r1522 r1646  
    429429 * Free variables and call finish(@p x).
    430430 */
    431 #define paranoid_MR_finish(x) {free_MR_global_filenames (); if (g_bkpinfo_DONTUSETHIS) paranoid_free ( g_bkpinfo_DONTUSETHIS ); finish(x); }
     431#define paranoid_MR_finish(x) {free_MR_global_filenames (); finish(x); }
    432432
    433433/**
  • branches/2.2.5/mondo/src/mondorestore/mondo-restore-EXT.h

    r425 r1646  
    1212extern char *g_isodir_format;
    1313
    14 extern struct s_bkpinfo *g_bkpinfo_DONTUSETHIS;
    1514extern char *g_biggielist_txt;
    1615extern char *g_filelist_full;
  • branches/2.2.5/mondo/src/mondorestore/mondo-restore.c

    r1645 r1646  
    4040 **************************************************************************/
    4141extern char *g_tmpfs_mountpt;   // declared in libmondo-tools.c
    42 extern struct s_bkpinfo *g_bkpinfo_DONTUSETHIS; // used by finish() to free
    43                                                 // up global bkpinfo struct
    4442extern bool g_text_mode;
    4543extern FILE *g_fprep;
     
    29152913    }                           // newt :-)
    29162914    if (!
    2917         (bkpinfo = g_bkpinfo_DONTUSETHIS =
    2918          malloc(sizeof(struct s_bkpinfo)))) {
     2915        (bkpinfo = malloc(sizeof(struct s_bkpinfo)))) {
    29192916        fatal_error("Cannot malloc bkpinfo");
    29202917    }
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools.c

    r1645 r1646  
    155155extern char *g_mountlist_fname; // where mountlist.txt (the mountlist file) is stored
    156156extern char *g_mondo_home;      // homedir of Mondo; usually /usr/local/share/mondo
    157 extern struct s_bkpinfo *g_bkpinfo_DONTUSETHIS;
    158157
    159158extern t_bkptype g_backup_media_type;
Note: See TracChangeset for help on using the changeset viewer.