Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
4c44a931
Commit
4c44a931
authored
8 years ago
by
Sebastian Meiling
Browse files
Options
Downloads
Patches
Plain Diff
shell, netstats: fix unused function error
parent
3b02e08d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/shell/commands/sc_netif.c
+6
-2
6 additions, 2 deletions
sys/shell/commands/sc_netif.c
with
6 additions
and
2 deletions
sys/shell/commands/sc_netif.c
+
6
−
2
View file @
4c44a931
...
@@ -73,7 +73,7 @@ static bool _is_iface(kernel_pid_t dev)
...
@@ -73,7 +73,7 @@ static bool _is_iface(kernel_pid_t dev)
return
false
;
return
false
;
}
}
#if
def
ined(
MODULE_NETSTATS
)
#ifdef
MODULE_NETSTATS
const
char
*
_netstats_module_to_str
(
uint8_t
module
)
const
char
*
_netstats_module_to_str
(
uint8_t
module
)
{
{
switch
(
module
)
{
switch
(
module
)
{
...
@@ -129,7 +129,7 @@ static int _netif_stats(kernel_pid_t dev, unsigned module, bool reset)
...
@@ -129,7 +129,7 @@ static int _netif_stats(kernel_pid_t dev, unsigned module, bool reset)
}
}
return
res
;
return
res
;
}
}
#endif
#endif
// MODULE_NETSTATS
static
void
_set_usage
(
char
*
cmd_name
)
static
void
_set_usage
(
char
*
cmd_name
)
{
{
...
@@ -160,10 +160,12 @@ static void _mtu_usage(char *cmd_name)
...
@@ -160,10 +160,12 @@ static void _mtu_usage(char *cmd_name)
printf
(
"usage: %s <if_id> mtu <n>
\n
"
,
cmd_name
);
printf
(
"usage: %s <if_id> mtu <n>
\n
"
,
cmd_name
);
}
}
#ifdef MODULE_GNRC_IPV6_NETIF
static
void
_hl_usage
(
char
*
cmd_name
)
static
void
_hl_usage
(
char
*
cmd_name
)
{
{
printf
(
"usage: %s <if_id> hl <n>
\n
"
,
cmd_name
);
printf
(
"usage: %s <if_id> hl <n>
\n
"
,
cmd_name
);
}
}
#endif
static
void
_flag_usage
(
char
*
cmd_name
)
static
void
_flag_usage
(
char
*
cmd_name
)
{
{
...
@@ -182,11 +184,13 @@ static void _del_usage(char *cmd_name)
...
@@ -182,11 +184,13 @@ static void _del_usage(char *cmd_name)
cmd_name
);
cmd_name
);
}
}
#ifdef MODULE_NETSTATS
static
void
_stats_usage
(
char
*
cmd_name
)
static
void
_stats_usage
(
char
*
cmd_name
)
{
{
printf
(
"usage: %s <if_id> stats [l2|ipv6] [reset]
\n
"
,
cmd_name
);
printf
(
"usage: %s <if_id> stats [l2|ipv6] [reset]
\n
"
,
cmd_name
);
puts
(
" reset can be only used if the module is specified."
);
puts
(
" reset can be only used if the module is specified."
);
}
}
#endif
static
void
_print_netopt
(
netopt_t
opt
)
static
void
_print_netopt
(
netopt_t
opt
)
{
{
...
...
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