Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
031c3ba5
Commit
031c3ba5
authored
Oct 13, 2022
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd_ptp.c: constify
parent
38971b0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
cmd_ptp.c
shell/cmd_ptp.c
+7
-6
No files found.
shell/cmd_ptp.c
View file @
031c3ba5
...
...
@@ -25,7 +25,7 @@
#define USE_CMD_PARAM -1
static
const
struct
subcmd
{
char
*
name
;
c
onst
c
har
*
name
;
int
(
*
fun
)(
int
);
int
arg
;
}
subcmd
[]
=
{
...
...
@@ -57,12 +57,13 @@ static const struct subcmd {
#endif
};
static
char
*
is_run
[]
=
{
"stopped"
,
"running"
};
static
char
*
is_mech
[]
=
{[
MECH_E2E
]
=
"e2e"
,
[
MECH_P2P
]
=
"p2p"
};
static
char
*
is_mode
[]
=
{[
WRC_MODE_GM
]
=
"gm"
,
[
WRC_MODE_MASTER
]
=
"master"
,
[
WRC_MODE_SLAVE
]
=
"slave"
static
const
char
*
const
is_run
[]
=
{
"stopped"
,
"running"
};
static
const
char
*
const
is_mech
[]
=
{[
MECH_E2E
]
=
"e2e"
,
[
MECH_P2P
]
=
"p2p"
};
static
const
char
*
const
is_mode
[]
=
{[
WRC_MODE_GM
]
=
"gm"
,
[
WRC_MODE_MASTER
]
=
"master"
,
[
WRC_MODE_SLAVE
]
=
"slave"
#ifdef CONFIG_ABSCAL
,
[
WRC_MODE_ABSCAL
]
=
"abscal"
,
[
WRC_MODE_ABSCAL
]
=
"abscal"
#endif
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment