Changeset 3185 in MondoRescue for branches/3.0/mondo/src/lib
- Timestamp:
- Sep 20, 2013, 2:29:57 PM (12 years ago)
- Location:
- branches/3.0/mondo/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/lib/mr_conf.c
r3060 r3185 107 107 CONF = fopen(filename, "r"); 108 108 109 mr_asprintf( &mr_conf_filename, "%s", filename);109 mr_asprintf(mr_conf_filename, "%s", filename); 110 110 111 111 /*if file is empty or not exist => error */ … … 199 199 p = mr_conf_read(field_name); 200 200 if (p != NULL) { 201 mr_asprintf( &p1, "%d", p);201 mr_asprintf(p1, "%d", p); 202 202 } 203 203 return p1; … … 211 211 p = mr_conf_read(field_name); 212 212 if (p != NULL) { 213 mr_asprintf( &p1, "%f", p);213 mr_asprintf(p1, "%f", p); 214 214 } 215 215 return p1; … … 233 233 return(p); 234 234 } 235 mr_asprintf( &q, "%s", p);235 mr_asprintf(q, "%s", p); 236 236 237 237 if (*p != '"') { … … 276 276 (strncasecmp(p, "t" , (size_t)1) == 0) || 277 277 (strncasecmp(p, "1" , (size_t)1) == 0)) { 278 mr_asprintf( &p1, "%d", TRUE);278 mr_asprintf(p1, "%d", TRUE); 279 279 } else { 280 mr_asprintf( &p1, "%d", FALSE);280 mr_asprintf(p1, "%d", FALSE); 281 281 } 282 282 } … … 289 289 char *p = NULL; 290 290 291 mr_asprintf( &p, "%d", FALSE);291 mr_asprintf(p, "%d", FALSE); 292 292 if (strcmp(str,p) != 0) { 293 293 ret = TRUE; -
branches/3.0/mondo/src/lib/mr_mem.c
r3127 r3185 122 122 */ 123 123 void mr_strcat_int(char **in, int line, const char *file, const char *fmt, ...) { 124 125 124 char *fmt2 = NULL; 126 125 va_list args;
Note:
See TracChangeset
for help on using the changeset viewer.