Changeset 1390 in MondoRescue
- Timestamp:
- May 3, 2007, 2:03:17 AM (18 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/lib/mr_err.c
r1269 r1390 17 17 #include <stdlib.h> 18 18 19 #include "mr_msg.h"20 21 19 /* Pointer to the right cleanup function provided by each main */ 22 20 extern void (*mr_cleanup)(void); -
branches/stable/mondo/src/mondoarchive/mondoarchive.c
r1384 r1390 195 195 void (*mr_cleanup)(void) = NULL; 196 196 197 /* Just for init */ 198 void mr_ar_cleanup_empty(void) { 199 } 200 197 201 /* Cleanup all memory allocated in various structures */ 198 202 void mr_ar_cleanup(void) { … … 232 236 printf(_("Initializing...")); 233 237 234 /* Reference the right cleanup function for mr_exit*/235 mr_cleanup = &mr_ar_cleanup ;238 /* Reference a dummy cleanup function for mr_exit temporarily */ 239 mr_cleanup = &mr_ar_cleanup_empty; 236 240 237 241 /* initialize log file with time stamp */ … … 262 266 } 263 267 mr_ar_store_conf(&mr_conf); 268 /* Reference the right cleanup function for mr_exit now it's allocated */ 269 mr_cleanup = &mr_ar_cleanup; 270 264 271 mr_conf_close(); 265 272
Note:
See TracChangeset
for help on using the changeset viewer.