summaryrefslogtreecommitdiff
path: root/src/jtag/tcl.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-24 20:32:10 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-25 10:32:00 -0800
commit4946925bea77a4aace6c310b2b724cf2095c6719 (patch)
tree3f881c5a7125fce193efd20d008e29212ecb29b9 /src/jtag/tcl.c
parenta3d81eed4d2aac51056f36d7c00ee639bb39c552 (diff)
downloadopenocd_libswd-4946925bea77a4aace6c310b2b724cf2095c6719.tar.gz
openocd_libswd-4946925bea77a4aace6c310b2b724cf2095c6719.tar.bz2
openocd_libswd-4946925bea77a4aace6c310b2b724cf2095c6719.tar.xz
openocd_libswd-4946925bea77a4aace6c310b2b724cf2095c6719.zip
use ARRAY_SIZE macro
Search and destroy lingering cases where the ARRAY_SIZE macro should be used to convey more intrinsic meaning in the OpenOCD code.
Diffstat (limited to 'src/jtag/tcl.c')
-rw-r--r--src/jtag/tcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index bc290788..e755dd7e 100644
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -1304,7 +1304,7 @@ static int Jim_Command_pathmove(Jim_Interp *interp, int argc, Jim_Obj *const *ar
{
tap_state_t states[8];
- if ((argc < 2) || ((size_t)argc > (sizeof(states)/sizeof(*states) + 1)))
+ if ((argc < 2) || ((size_t)argc > (ARRAY_SIZE(states) + 1)))
{
Jim_WrongNumArgs(interp, 1, args, "wrong arguments");
return JIM_ERR;