# HG changeset patch # User ben # Date 1178556535 0 # Node ID 9f4d6e0910222a9d72e5eb62e95ddf6c87ad98b2 # Parent ae2a2d5ca64b4455a466625337fefd20dcb1a631 removed useless casts as pointed out by reimar diff -r ae2a2d5ca64b -r 9f4d6e091022 libmenu/menu.c --- a/libmenu/menu.c Mon May 07 16:46:24 2007 +0000 +++ b/libmenu/menu.c Mon May 07 16:48:55 2007 +0000 @@ -354,14 +354,14 @@ char_set_num = fribidi_parse_charset("UTF-8"); } buffer_size = 1024 > (len+1) ? 1024 : (len+1); - logical = (FriBidiChar*) malloc(buffer_size); - visual = (FriBidiChar*) malloc(buffer_size); - outputstr = (char*) malloc(buffer_size); + logical = malloc(buffer_size); + visual = malloc(buffer_size); + outputstr = malloc(buffer_size); } else if (len+1 > buffer_size) { buffer_size = len+1; - logical = (FriBidiChar*) realloc(logical, buffer_size); - visual = (FriBidiChar*) realloc(visual, buffer_size); - outputstr = (char*) realloc(outputstr, buffer_size); + logical = realloc(logical, buffer_size); + visual = realloc(visual, buffer_size); + outputstr = realloc(outputstr, buffer_size); } len = fribidi_charset_to_unicode (char_set_num, txt, len, logical); base = menu_fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L;