forked from auracaster/openocd
openocd: properly use jim data types
The jim library exports all the data types through typedef, so there is no need to use the internal struct types. Fix the few remaining inconsistencies in the code. Change-Id: Id4ae0083563ea7a371833374e7b39f17158f66a4 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5662 Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins
This commit is contained in:
@@ -5011,7 +5011,7 @@ static int jim_target_examine(Jim_Interp *interp, int argc, Jim_Obj *const *argv
|
||||
if (goi.argc > 0 &&
|
||||
strcmp(Jim_GetString(argv[1], NULL), "allow-defer") == 0) {
|
||||
/* consume it */
|
||||
struct Jim_Obj *obj;
|
||||
Jim_Obj *obj;
|
||||
int e = Jim_GetOpt_Obj(&goi, &obj);
|
||||
if (e != JIM_OK)
|
||||
return e;
|
||||
|
||||
Reference in New Issue
Block a user