Changeset 2320 in MondoRescue for branches/2.2.10/mondo/src/lib


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

r3331@localhost: bruno | 2009-08-06 01:34:32 +0200

  • bkpinfo->scratchdir is now dynamically allocated
  • mondoarchive tests made in text+newt env. Seems OK. Valgrind errors to be fixed
Location:
branches/2.2.10/mondo/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/lib/mr_err.c

    r1422 r2320  
    1616#include <stdio.h>
    1717#include <stdlib.h>
     18#include "mr_msg.h"
    1819
    1920/* Pointer to the right cleanup function provided by each main */
    20 extern void (*mr_cleanup)(void);
     21extern void (*mr_cleanup)(int);
    2122
    2223/*
     
    2627
    2728    if (mr_cleanup != NULL) {
    28         mr_cleanup();
     29        mr_cleanup(errorcode);
    2930    }
    3031    if (message != NULL) {
    3132        fprintf(stderr,"%s\n",message);
    3233    }
     34    mr_msg_close();
    3335    exit(errorcode);
    3436}
  • branches/2.2.10/mondo/src/lib/mr_mem.c

    r2316 r2320  
    5757   
    5858    ssize_t ret;
    59     ssize_t *n;
     59    ssize_t n = 0;
    6060
    61     ret = getline(lineptr,n,fd);
     61    ret = getline(lineptr,&n,fd);
    6262    if ((ret == -1) && (! feof(fd))) {
    6363        mr_msg_int(1,line,file,"Unable to alloc memory in mr_getline\nExiting...");
Note: See TracChangeset for help on using the changeset viewer.