Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openocd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
openocd
Commits
e09d8938
Commit
e09d8938
authored
15 years ago
by
Zachary T Welch
Browse files
Options
Downloads
Patches
Plain Diff
script_debug(): improve types
Use unsigned type for number of arguments.
parent
c9429693
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/helper/command.c
+4
-4
4 additions, 4 deletions
src/helper/command.c
src/helper/command.h
+2
-1
2 additions, 1 deletion
src/helper/command.h
with
6 additions
and
5 deletions
src/helper/command.c
+
4
−
4
View file @
e09d8938
...
...
@@ -59,12 +59,12 @@ static void tcl_output(void *privData, const char *file, unsigned line,
extern
command_context_t
*
global_cmd_ctx
;
void
script_debug
(
Jim_Interp
*
interp
,
const
char
*
name
,
int
argc
,
Jim_Obj
*
const
*
argv
)
void
script_debug
(
Jim_Interp
*
interp
,
const
char
*
name
,
unsigned
argc
,
Jim_Obj
*
const
*
argv
)
{
int
i
;
LOG_DEBUG
(
"command - %s"
,
name
);
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
for
(
unsigned
i
=
0
;
i
<
argc
;
i
++
)
{
int
len
;
const
char
*
w
=
Jim_GetString
(
argv
[
i
],
&
len
);
...
...
This diff is collapsed.
Click to expand it.
src/helper/command.h
+
2
−
1
View file @
e09d8938
...
...
@@ -170,6 +170,7 @@ DECLARE_PARSE_WRAPPER(_s8, int8_t);
} \
} while (0)
void
script_debug
(
Jim_Interp
*
interp
,
const
char
*
cmd
,
int
argc
,
Jim_Obj
*
const
*
argv
);
void
script_debug
(
Jim_Interp
*
interp
,
const
char
*
cmd
,
unsigned
argc
,
Jim_Obj
*
const
*
argv
);
#endif
/* COMMAND_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment