diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2015-05-09 08:06:02 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2015-05-19 07:17:36 +0200 |
commit | c877149e9d46b0de4bc709faf3cfb4f0a23c9cc5 (patch) | |
tree | 02e5fc6fb96d3fce87823a6661e4dffa3c3528fe /util/cbfstool/fmd_scanner.l | |
parent | df699d545f38bc9529401d862f4a9a80228da6b7 (diff) | |
download | coreboot-c877149e9d46b0de4bc709faf3cfb4f0a23c9cc5.tar.xz |
cbfstool: Fix fmd_scanner build compatibility
Fixes these errors:
error: declaration of ‘input’ shadows a global declaration [-Werror=shadow]
error: redundant redeclaration of ‘isatty’ [-Werror=redundant-decls]
Change-Id: I4563d36e5389db4fdc5be3ca4e0e88af2642f7f8
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/10162
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-by: Sol Boucher <solb@chromium.org>
Reviewed-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Diffstat (limited to 'util/cbfstool/fmd_scanner.l')
-rw-r--r-- | util/cbfstool/fmd_scanner.l | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/cbfstool/fmd_scanner.l b/util/cbfstool/fmd_scanner.l index d2cc43d04c..0a582105f3 100644 --- a/util/cbfstool/fmd_scanner.l +++ b/util/cbfstool/fmd_scanner.l @@ -23,8 +23,8 @@ #include <assert.h> #include <string.h> -int parse_integer(char *input, int base); -int copy_string(const char *input); +int parse_integer(char *src, int base); +int copy_string(const char *src); %} %option noyywrap @@ -44,10 +44,10 @@ MULTIPLIER [KMG] %% -int parse_integer(char *input, int base) +int parse_integer(char *src, int base) { char *multiplier = NULL; - unsigned val = strtoul(input, &multiplier, base); + unsigned val = strtoul(src, &multiplier, base); if (*multiplier) { switch(*multiplier) { @@ -71,8 +71,8 @@ int parse_integer(char *input, int base) return INTEGER; } -int copy_string(const char *input) +int copy_string(const char *src) { - yylval.strval = strdup(input); + yylval.strval = strdup(src); return STRING; } |