Ignore:
Timestamp:
Jan 28, 2007, 7:04:41 PM (13 years ago)
Author:
bruno
Message:
  • Fix mindi install messages (reported by Andree Leidenfrost)
  • remove paranoid_free/free for mr_free
  • mr_asprintf used everywhere
  • mr_malloc used everywhere
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-string.c

    r1063 r1080  
    88
    99#include "my-stuff.h"
     10#include "mr_mem.h"
    1011#include "mondostructures.h"
    1112#include "libmondo-string.h"
     
    220221    malloc_string(tmp);
    221222    if (!incoming[0]) {
    222         free(tmp);
     223        mr_free(tmp);
    223224        return (0);
    224225    }
     
    254255        fatal_error(tmp);
    255256    }
    256     paranoid_free(tmp);
     257    mr_free(tmp);
    257258    return (outval);
    258259}
     
    512513    char *p;
    513514
    514     input = malloc(2000);
     515    input = mr_malloc(2000);
    515516    assert_string_is_neither_NULL_nor_zerolength(ip);
    516517    assert_string_is_neither_NULL_nor_zerolength(token);
     
    526527        strcat(output, p);
    527528    }
    528     paranoid_free(input);
     529    mr_free(input);
    529530}
    530531
     
    796797    }
    797798    in_out[i] = '\0';
    798     paranoid_free(tmp);
     799    mr_free(tmp);
    799800/*  for(i=strlen(in_out); i>0 && in_out[i-1]<=32; i--) {in_out[i-1]='\0';} */
    800801}
     
    10181019        strcpy(out_reason, reason);
    10191020    }
    1020     paranoid_free(filename);
    1021     paranoid_free(reason);
     1021    mr_free(filename);
     1022    mr_free(reason);
    10221023    return (sev);
    10231024}
     
    11121113    j = (int) strlen(outstr);
    11131114    sprintf(outstr + j, "] %d%% used", percentage);
    1114     paranoid_free(pos_w_commas);
    1115     paranoid_free(tmp);
     1115    mr_free(pos_w_commas);
     1116    mr_free(tmp);
    11161117    return (outstr);
    11171118}
Note: See TracChangeset for help on using the changeset viewer.