Changeset 2211 in MondoRescue for branches/2.2.9/mondo/test/test-mountlist.c


Ignore:
Timestamp:
Jun 3, 2009, 7:10:19 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3089@localhost: bruno | 2009-05-18 06:41:05 +0200

  • move call to asprintf to call to mr_asprintf (suppress a compiler warning)
  • remove all the most obvious bad call to strcat and replace by mr_strcat as appropriate
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/test/test-mountlist.c

    r2209 r2211  
     1/*
     2 * $Id$
     3 *
     4 * Test program for mountlist management at restore time
     5 * Cn be used on host system with valgrind easier than with mondorestore
     6 */
    17#include <stdio.h>
    28#include "my-stuff.h"
     9#include "mr_mem.h"
    310#include "../common/mondostructures.h"
    411#include "../common/libmondo.h"
     
    4451    struct raidlist_itself *raidlist;
    4552
    46     asprintf(&MONDO_LOGFILE,"/tmp/mrtest-mountlist.log");
     53    mr_asprintf(&MONDO_LOGFILE,"/tmp/mrtest-mountlist.log");
    4754
    4855    /* Globals */
     
    6067
    6168setup_newt_stuff();
    62 asprintf(&g_mountlist_fname, "/tmp/mountlist.txt");
     69mr_asprintf(&g_mountlist_fname, "/tmp/mountlist.txt");
    6370log_it("before mountlist");
    6471load_mountlist(mountlist, g_mountlist_fname);
Note: See TracChangeset for help on using the changeset viewer.