diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-26 16:10:42 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-26 16:10:42 +0000 |
commit | 25a0dc93aca130f375da0a99ee13b079aa32b05d (patch) | |
tree | 081113f58138ca2d383a53e4cd3a4ca6c45cfda3 /libc/misc/regex/regex_internal.c | |
parent | 822415c917c41d4724e1feb5aa9330a91c5e70d9 (diff) | |
download | uClibc-alpine-25a0dc93aca130f375da0a99ee13b079aa32b05d.tar.bz2 uClibc-alpine-25a0dc93aca130f375da0a99ee13b079aa32b05d.tar.xz |
regex: remove useless casts on allocations;
remove old-style-C function params declarations;
change re_comp_buf from struct to pointer (more static build friendly)
text data bss dec hex filename
- 514952 2731 15424 533107 82273 lib/libuClibc-0.9.30-svn.so
+ 515011 2731 15396 533138 82292 lib/libuClibc-0.9.30-svn.so
Diffstat (limited to 'libc/misc/regex/regex_internal.c')
-rw-r--r-- | libc/misc/regex/regex_internal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/misc/regex/regex_internal.c b/libc/misc/regex/regex_internal.c index 11b1be7c2..1c94c979a 100644 --- a/libc/misc/regex/regex_internal.c +++ b/libc/misc/regex/regex_internal.c @@ -1529,7 +1529,7 @@ create_ci_newstate (const re_dfa_t *dfa, const re_node_set *nodes, reg_errcode_t err; re_dfastate_t *newstate; - newstate = (re_dfastate_t *) calloc (sizeof (re_dfastate_t), 1); + newstate = calloc (sizeof (re_dfastate_t), 1); if (BE (newstate == NULL, 0)) return NULL; err = re_node_set_init_copy (&newstate->nodes, nodes); @@ -1579,7 +1579,7 @@ create_cd_newstate (const re_dfa_t *dfa, const re_node_set *nodes, reg_errcode_t err; re_dfastate_t *newstate; - newstate = (re_dfastate_t *) calloc (sizeof (re_dfastate_t), 1); + newstate = calloc (sizeof (re_dfastate_t), 1); if (BE (newstate == NULL, 0)) return NULL; err = re_node_set_init_copy (&newstate->nodes, nodes); |