lib/random_range.c: remove unnecessary malloc type cast
PATCH 7/7 lib/random_range.c: remove unnecessary malloc type cast
Signed-off-by Maninder Singh <[email protected]>
Signed-off-by Akhilesh Kumar <[email protected]>
--- lib/random_range.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/random_range.c +1 -1
@@ -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,"," );
Signature · 6 lines
1.7.9.5 ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list