summaryrefslogtreecommitdiff
path: root/src/helper/jim.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 22:47:52 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 22:47:52 +0200
commit00017c90ae82d3237f5a4784caa695459c5897d2 (patch)
tree254cdff83e86192c28d9407773b6ebe9a40b2638 /src/helper/jim.c
parent3c8a0e72f38e47bfc78dc7ab44ce2ec16cfac53b (diff)
downloadopenocd+libswd-00017c90ae82d3237f5a4784caa695459c5897d2.tar.gz
openocd+libswd-00017c90ae82d3237f5a4784caa695459c5897d2.tar.bz2
openocd+libswd-00017c90ae82d3237f5a4784caa695459c5897d2.tar.xz
openocd+libswd-00017c90ae82d3237f5a4784caa695459c5897d2.zip
jim: -Wshadow warning fix
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/helper/jim.c')
-rw-r--r--src/helper/jim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/jim.c b/src/helper/jim.c
index 8b0014f3..85389549 100644
--- a/src/helper/jim.c
+++ b/src/helper/jim.c
@@ -11907,15 +11907,15 @@ static int Jim_ScanCoreCommand(Jim_Interp *interp, int argc,
}
if (argc > 3) {
int maxPos = FormatGetMaxPos(argv[2]);
- int count = FormatGetCnvCount(argv[2]);
+ int arg_count = FormatGetCnvCount(argv[2]);
if (maxPos > argc-3) {
Jim_SetResultString(interp, "\"%n$\" argument index out of range", -1);
return JIM_ERR;
- } else if (count != 0 && count < argc-3) {
+ } else if (arg_count != 0 && arg_count < argc-3) {
Jim_SetResultString(interp, "variable is not assigned by any "
"conversion specifiers", -1);
return JIM_ERR;
- } else if (count > argc-3) {
+ } else if (arg_count > argc-3) {
Jim_SetResultString(interp, "different numbers of variable names and "
"field specifiers", -1);
return JIM_ERR;