Changeset 1081 in MondoRescue for trunk/mondo/src/common/libmondo-raid.c
- Timestamp:
- Jan 28, 2007, 11:20:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/common/libmondo-raid.c
r1079 r1081 18 18 #include "mr_mem.h" 19 19 #include "mr_str.h" 20 #include "mr_mem.h" 20 21 21 22 #ifdef __FreeBSD__ … … 817 818 int i, j; 818 819 static char **ret; 819 ret = (char **) m alloc(nval * sizeof(char *));820 ret = (char **) mr_malloc(nval * sizeof(char *)); 820 821 for (i = 0; i < (argc - nval); ++i) { 821 822 if (!strcmp(argv[i], option)) { 822 823 for (j = 0; j < nval; ++j) { 823 ret[j] = (char *) m alloc(strlen(argv[i + j + 1]) + 1);824 ret[j] = (char *) mr_malloc(strlen(argv[i + j + 1]) + 1); 824 825 strcpy(ret[j], argv[i + j + 1]); 825 826 } … … 1175 1176 int retval = 0; 1176 1177 1177 raidlist = m alloc(sizeof(struct raidlist_itself));1178 raidlist = mr_malloc(sizeof(struct raidlist_itself)); 1178 1179 1179 1180 // FIXME: Prefix '/dev/' should really be dynamic!
Note:
See TracChangeset
for help on using the changeset viewer.