Changeset 1061 in MondoRescue for branches/stable/mondo/src/lib/mr_mem.c


Ignore:
Timestamp:
Jan 18, 2007, 1:47:59 PM (17 years ago)
Author:
Bruno Cornec
Message:
  • mpt + ohci modules added for mindi
  • PATH fixed for init in restore (/usr/games added for petris + fixes)
  • Useless conf files removed from rootfs/etc or cleaned up
  • Still trying to have a working va_list by busybox alignment
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/lib/mr_mem.c

    r1054 r1061  
    1212#include <stdio.h>
    1313#include <stdlib.h>
    14 #include <stdarg.h>
    1514
    1615#include "mr_err.h"
     
    5352
    5453/* encapsulation function for asprintf */
    55 void mr_asprintf(char **strp, const char *fmt, ...) {
     54void mr_asprintf(char **strp, const char *fmt, va_list args) {
    5655
    57     va_list args;
    5856    int res = 0;
    5957
    60     va_start(args, fmt);
    6158    res = vasprintf(strp, fmt, args);
    6259    if (res == -1) {
    6360        mr_log_exit(-1,"Unable to alloc memory in mr_asprintf\nExiting...");
    6461    }
    65     va_end(args);
    6662}
    6763
Note: See TracChangeset for help on using the changeset viewer.