diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-13 02:27:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-13 02:27:31 +0000 |
commit | 77ad97f199f1bf05e9a7609bbdd239dab825b258 (patch) | |
tree | cf117ebf8d4a50bc7ba0e4da4d60a98a944756c8 /editors/awk.c | |
parent | c4f12f59cc907577d787f816b37122809f896bb2 (diff) | |
download | busybox-w32-77ad97f199f1bf05e9a7609bbdd239dab825b258.tar.gz busybox-w32-77ad97f199f1bf05e9a7609bbdd239dab825b258.tar.bz2 busybox-w32-77ad97f199f1bf05e9a7609bbdd239dab825b258.zip |
more -Wall warning fixes from Cristian Ionescu-Idbohrn.
This time it resulted in small code changes:
function old new delta
nexpr 820 828 +8
tail_main 1200 1202 +2
wrapf 166 167 +1
parse_mount_options 227 209 -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 11/-18) Total: -7 bytes
Diffstat (limited to 'editors/awk.c')
-rw-r--r-- | editors/awk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/awk.c b/editors/awk.c index f04ea5ced..fef3246b8 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -676,7 +676,7 @@ static char nextchar(char **s) | |||
676 | return c; | 676 | return c; |
677 | } | 677 | } |
678 | 678 | ||
679 | static int ALWAYS_INLINE isalnum_(int c) | 679 | static ALWAYS_INLINE int isalnum_(int c) |
680 | { | 680 | { |
681 | return (isalnum(c) || c == '_'); | 681 | return (isalnum(c) || c == '_'); |
682 | } | 682 | } |
@@ -1682,7 +1682,7 @@ static void hashwalk_init(var *v, xhash *array) | |||
1682 | { | 1682 | { |
1683 | char **w; | 1683 | char **w; |
1684 | hash_item *hi; | 1684 | hash_item *hi; |
1685 | int i; | 1685 | unsigned i; |
1686 | 1686 | ||
1687 | if (v->type & VF_WALK) | 1687 | if (v->type & VF_WALK) |
1688 | free(v->x.walker); | 1688 | free(v->x.walker); |
@@ -1996,7 +1996,7 @@ static var *exec_builtin(node *op, var *res) | |||
1996 | } | 1996 | } |
1997 | 1997 | ||
1998 | nargs = i; | 1998 | nargs = i; |
1999 | if (nargs < (info >> 30)) | 1999 | if ((uint32_t)nargs < (info >> 30)) |
2000 | syntax_error(EMSG_TOO_FEW_ARGS); | 2000 | syntax_error(EMSG_TOO_FEW_ARGS); |
2001 | 2001 | ||
2002 | switch (info & OPNMASK) { | 2002 | switch (info & OPNMASK) { |