Skip to content

Commit

Permalink
lib/random_range.c: remove unnecessary malloc type cast
Browse files Browse the repository at this point in the history
Signed-off-by: Maninder Singh <[email protected]>
Signed-off-by: Akhilesh Kumar <[email protected]>
  • Loading branch information
maninder42 authored and metan-ucw committed Jun 16, 2015
1 parent 3433348 commit 90deae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/random_range.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int parse_ranges(char *str, int defmin, int defmax, int defmult,
}

tmpstr = strdup(str);
ranges = (struct range *)malloc((ncommas + 1) * sizeof(struct range));
ranges = malloc((ncommas + 1) * sizeof(struct range));
rp = ranges;

tok = strtok(tmpstr, ",");
Expand Down

0 comments on commit 90deae7

Please sign in to comment.