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

Render bkpinfo global (potential issue on thread, but should not be a problem as that structure is indeed static during archive)
Should solve the tmpdir issue from previous rev.
May still not compile

File:
1 edited

Legend:

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

    r1644 r1645  
    196196extern int g_current_media_number;
    197197extern char *MONDO_LOGFILE;
     198
     199/* Reference to global bkpinfo */
     200extern struct s_bkpinfo *bkpinfo;
    198201
    199202/**
     
    566569 * do not exist.
    567570 */
    568 int post_param_configuration(struct s_bkpinfo *bkpinfo)
     571int post_param_configuration()
    569572{
    570573    char *extra_cdrom_params;
     
    878881            }
    879882        }
    880         store_nfs_config(bkpinfo);
     883        store_nfs_config();
    881884    }
    882885
     
    924927 * @return number of errors (0 for success)
    925928 */
    926 int pre_param_configuration(struct s_bkpinfo *bkpinfo)
     929int pre_param_configuration()
    927930{
    928931    int res = 0;
     
    932935    srandom((unsigned long) (time(NULL)));
    933936    insmod_crucial_modules();
    934     reset_bkpinfo(bkpinfo);     // also sets defaults ('/'=backup path, 3=compression level)
     937    reset_bkpinfo();        // also sets defaults ('/'=backup path, 3=compression level)
    935938    if (bkpinfo->disaster_recovery) {
    936939        if (!does_nonMS_partition_exist()) {
     
    964967 * @param bkpinfo The @c bkpinfo to reset.
    965968 */
    966 void reset_bkpinfo(struct s_bkpinfo *bkpinfo)
     969void reset_bkpinfo()
    967970{
    968971    int i;
Note: See TracChangeset for help on using the changeset viewer.