comparison lib/regcomp.c @ 17273:7be3e941fb5b

regex: conform to strict C * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C. From Aharon Robbins.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 05 Jan 2013 12:06:52 -0800
parents 28b073aabf32
children 1fff19279ff9
comparison
equal deleted inserted replaced
17272:c9d7491e3e78 17273:7be3e941fb5b
3289 case CHAR_CLASS: 3289 case CHAR_CLASS:
3290 *err = build_charclass (regexp->trans, sbcset, 3290 *err = build_charclass (regexp->trans, sbcset,
3291 #ifdef RE_ENABLE_I18N 3291 #ifdef RE_ENABLE_I18N
3292 mbcset, &char_class_alloc, 3292 mbcset, &char_class_alloc,
3293 #endif /* RE_ENABLE_I18N */ 3293 #endif /* RE_ENABLE_I18N */
3294 start_elem.opr.name, syntax); 3294 (const char *) start_elem.opr.name,
3295 syntax);
3295 if (BE (*err != REG_NOERROR, 0)) 3296 if (BE (*err != REG_NOERROR, 0))
3296 goto parse_bracket_exp_free_return; 3297 goto parse_bracket_exp_free_return;
3297 break; 3298 break;
3298 default: 3299 default:
3299 assert (0); 3300 assert (0);