Changeset 1543 in MondoRescue
- Timestamp:
- Jul 23, 2007, 1:05:36 AM (18 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/stable/mondo/src/common/libmondo-archive.c ¶
r1535 r1543 26 26 #include "mr_str.h" 27 27 #include "mr_file.h" 28 #include "mr_gettext.h" 28 29 29 30 #include "libmondo-string-EXT.h" … … 41 42 #define DVDRWFORMAT 1 42 43 43 extern struct mr_ar_conf mr_conf;44 extern struct mr_ar_conf *mr_conf; 44 45 45 46 -
TabularUnified branches/stable/mondo/src/common/libmondo-devices.c ¶
r1529 r1543 17 17 #include "libmondo-fork-EXT.h" 18 18 #include "libmondo-stream-EXT.h" 19 19 20 #include "mr_mem.h" 20 21 #include "mr_msg.h" 21 22 #include "mr_str.h" 23 #include "mr_gettext.h" 22 24 23 25 #include <sys/ioctl.h> -
TabularUnified branches/stable/mondo/src/common/libmondo-fifo.c ¶
r1344 r1543 32 32 #include "mr_mem.h" 33 33 #include "mr_msg.h" 34 #include "mr_gettext.h" 34 35 35 36 /** -
TabularUnified branches/stable/mondo/src/common/libmondo-filelist.c ¶
r1478 r1543 16 16 #include "newt-specific-EXT.h" 17 17 #include "libmondo-tools-EXT.h" 18 18 19 #include "mr_str.h" 19 20 #include "mr_mem.h" 20 21 #include "mr_msg.h" 22 #include "mr_gettext.h" 21 23 22 24 #include <time.h> … … 157 159 158 160 if (!does_file_exist(orig_fname)) { 159 log_msg(2, "file %s empty", orig_fname);161 mr_msg(2, "file %s empty", orig_fname); 160 162 return (0); 161 163 } // no sense in trying to sort an empty file -
TabularUnified branches/stable/mondo/src/common/libmondo-files.c ¶
r1508 r1543 22 22 #include "mr_msg.h" 23 23 #include "mr_file.h" 24 #include "mr_gettext.h" 24 25 25 26 /*@unused@*/ -
TabularUnified branches/stable/mondo/src/mondoarchive/mondoarchive.c ¶
r1535 r1543 55 55 static char *g_dvd_drive_is_here = NULL; 56 56 57 struct mr_ar_conf mr_conf;57 struct mr_ar_conf *mr_conf = NULL; 58 58 59 59 /***************** global vars ******************/ … … 257 257 mr_free(mr_cnf->tmp_dir); 258 258 mr_free(mr_cnf->images_dir); 259 mr_free(mr_cnf); 259 260 } 260 261 … … 270 271 /* Highly incomplete function for the moment */ 271 272 /* We have to free all allocated memory */ 272 mr_ar_clean_conf( &mr_conf);273 mr_ar_clean_conf(mr_conf); 273 274 /* We have to remove all temporary files */ 274 275 /* We have to unmount what has been mounted */ … … 332 333 mr_log_exit(-1, "Unable to open "MONDO_CONF_DIR"/mondo.conf.dist"); 333 334 } 334 mr_ar_store_conf(&mr_conf); 335 mr_conf = malloc(sizeof(struct mr_ar_conf)); 336 mr_ar_store_conf(mr_conf); 335 337 /* Reference the right cleanup function for mr_exit now it's allocated */ 336 338 mr_cleanup = &mr_ar_cleanup; … … 345 347 mr_log_exit(-1, "Unable to open "MINDI_CONF_DIR"/mindi.conf.dist"); 346 348 } 347 mr_ar_store_conf_mindi( &mr_conf);349 mr_ar_store_conf_mindi(mr_conf); 348 350 mr_conf_close(); 349 351 350 352 if (mr_conf_open(MINDI_CONF_DIR"/mindi.conf") == 0) { 351 mr_ar_store_conf_mindi( &mr_conf);353 mr_ar_store_conf_mindi(mr_conf); 352 354 mr_conf_close(); 353 355 }
Note:
See TracChangeset
for help on using the changeset viewer.