Changeset 768 in MondoRescue for trunk/mondo/mondo/test/test-conf.c


Ignore:
Timestamp:
Aug 8, 2006, 3:51:12 PM (18 years ago)
Author:
Bruno Cornec
Message:

mktest generates again good results with the new split of libraries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/test/test-conf.c

    r531 r768  
    88#include <stdio.h>
    99#include "my-stuff.h"
    10 #include "libmondo-conf.h"
     10#include "mr_conf.h"
    1111
    1212int g_main_pid = 0;
     
    1919    char *s = NULL;
    2020   
    21     if ((ret = mrconf_open("mondo.conf")) != 0) {
     21    if ((ret = mr_conf_open("mondo.conf")) != 0) {
    2222        fprintf(stderr,"Unable to open conf file (%d)\n",ret);
    2323        exit(-1);
    2424    }
    25     if ((i = mrconf_iread("testinteger")) == 0) {
     25    if ((i = mr_conf_iread("testinteger")) == 0) {
    2626        fprintf(stderr,"Unable to get integer\n");
    2727        exit(-1);
    2828    }
    2929    fprintf(stdout, "Integer : ***%d***\n",i);
    30     if ((f = mrconf_fread("testfloat")) == 0.0) {
     30    if ((f = mr_conf_fread("testfloat")) == 0.0) {
    3131        fprintf(stderr,"Unable to get float\n");
    3232        exit(-1);
    3333    }
    3434    fprintf(stdout, "Float : ***%f***\n",f);
    35     if (! (s = mrconf_sread("teststring"))) {
     35    if (! (s = mr_conf_sread("teststring"))) {
    3636        fprintf(stderr,"Unable to get string\n");
    3737        exit(-1);
     
    3939    fprintf(stdout, "String : ***%s***\n",s);
    4040    paranoid_free(s);
    41     mrconf_close();
     41    mr_conf_close();
    4242    exit(0);
    4343}
Note: See TracChangeset for help on using the changeset viewer.