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

r3332@localhost: bruno | 2009-08-07 23:59:34 +0200

  • bkpinfo->tmpchdir is now dynamically allocated
  • reorganize how tmpdir and scratchdir are initialized and the startup of the main sections
  • change of interface for maintain_collection_of_recent_archives, mondo_makefilelist, chop_filelist
  • sensibly_set_tmpdir_and_scratchdir => sensibly_set_scratchdir
  • reset_bkpinfo => init_bkpinfo
  • add function mr_free_bkpinfo
  • Fix a bug in mr_strtok
  • mondoarchive seems to globally work. Newt stuff needs more testing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/newt-specific.c

    r2320 r2321  
    3333
    3434extern struct s_bkpinfo *bkpinfo;
     35extern void mr_free_bkpinfo();
    3536
    3637/*@unused@*/
     
    280281        mr_asprintf(&tmp1,"kill `%s`", tmp);
    281282        run_program_and_log_output(tmp1, TRUE);
    282         paranoid_free(tmp1);
    283     }
    284     paranoid_free(tmp);
     283        mr_free(tmp1);
     284    }
     285    mr_free(tmp);
    285286}
    286287
     
    423424        }
    424425        /* Free all allocated strings in bkpinfo */
    425         mr_free(bkpinfo->nfs_user);
    426         mr_free(bkpinfo->exclude_paths);
    427         mr_free(bkpinfo->include_paths);
    428         mr_free(bkpinfo->scratchdir);
    429 
    430         /* Then free the structure */
    431         mr_free(bkpinfo);
     426        mr_free_bkpinfo();
    432427        free_libmondo_global_strings();
    433428        free_newt_stuff();
     
    601596        strcpy(title, ttl);
    602597        strcpy(g_isoform_header_str, title);
    603 //  center_string (title, 80);
    604598        if (g_text_mode) {
    605599            log_msg(0, title);
     
    922916            newtInit();
    923917            newtCls();
    924             newtPushHelpLine
    925                 ("Welcome to Mondo Rescue, by Dev Team and the Internet. All rights reversed.");
    926             /*  newtDrawRootText(28,0,"Welcome to Mondo Rescue"); */
     918            newtPushHelpLine("Welcome to Mondo Rescue, by Dev Team and the Internet. All rights reversed.");
    927919            newtDrawRootText(18, 0, WELCOME_STRING);
    928920            newtRefresh();
Note: See TracChangeset for help on using the changeset viewer.