
From: Lukas Funke lukas.funke@weidmueller.com
Prefix the get_arg() function with 'setexpr_' in order to prepare the removal of the static specifier. The prefix shall denote the origin of the function.
Signed-off-by: Lukas Funke lukas.funke@weidmueller.com ---
(no changes since v1)
cmd/setexpr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/setexpr.c b/cmd/setexpr.c index 233471f6cb..bc57d41448 100644 --- a/cmd/setexpr.c +++ b/cmd/setexpr.c @@ -34,7 +34,7 @@ struct expr_arg { }; };
-static int get_arg(char *s, int w, struct expr_arg *argp) +static int setexpr_get_arg(char *s, int w, struct expr_arg *argp) { struct expr_arg arg;
@@ -388,7 +388,7 @@ static int do_setexpr(struct cmd_tbl *cmdtp, int flag, int argc,
w = cmd_get_data_size(argv[0], 4);
- if (get_arg(argv[2], w, &aval)) + if (setexpr_get_arg(argv[2], w, &aval)) return CMD_RET_FAILURE;
/* format string assignment: "setexpr name fmt %d value" */ @@ -441,7 +441,7 @@ static int do_setexpr(struct cmd_tbl *cmdtp, int flag, int argc, if (strlen(argv[3]) != 1) return CMD_RET_USAGE;
- if (get_arg(argv[4], w, &bval)) { + if (setexpr_get_arg(argv[4], w, &bval)) { if (w == CMD_DATA_SIZE_STR) free(aval.sval); return CMD_RET_FAILURE;