Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
84
Issues
84
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
White Rabbit Switch - Software
Commits
00c88035
Commit
00c88035
authored
Nov 22, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace: trivial: remove some build warnings
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
148a77e0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
14 deletions
+7
-14
wr_management.c
userspace/tools/wr_management.c
+1
-0
wr_mon.c
userspace/tools/wr_mon.c
+4
-1
wrs_vlans.c
userspace/tools/wrs_vlans.c
+1
-13
hal_timing.c
userspace/wrsw_hal/hal_timing.c
+1
-0
No files found.
userspace/tools/wr_management.c
View file @
00c88035
...
...
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <minipc.h>
...
...
userspace/tools/wr_mon.c
View file @
00c88035
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <minipc.h>
...
...
@@ -61,7 +62,9 @@ void show_ports(void)
snprintf
(
if_name
,
10
,
"wr%d"
,
i
);
for
(
j
=
0
;
j
<
port_list
.
num_ports
;
j
++
)
if
(
!
strcmp
(
port_list
.
port_names
[
j
],
if_name
))
{
found
=
1
;
break
;
}
if
(
!
strcmp
(
port_list
.
port_names
[
j
],
if_name
))
{
found
=
1
;
break
;
}
if
(
!
found
)
continue
;
...
...
userspace/tools/wrs_vlans.c
View file @
00c88035
...
...
@@ -113,22 +113,10 @@ static int parse_mask(char *arg, unsigned long *pmask)
return
0
;
}
static
void
exit_mask
(
int
present
)
{
if
(
present
)
fprintf
(
stderr
,
"%s: can't set mask twice from cmdline
\n
"
,
prgname
);
else
fprintf
(
stderr
,
"%s: please set port mask before config
\n
"
,
prgname
);
exit
(
1
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
int
c
,
i
,
arg
;
unsigned
long
conf_pmask
;
//current '--ep' port mask for which we parse other args
unsigned
long
conf_pmask
=
0
;
//current '--ep' port mask
prgname
=
argv
[
0
];
...
...
userspace/wrsw_hal/hal_timing.c
View file @
00c88035
...
...
@@ -62,6 +62,7 @@ int hal_init_timing()
case
HAL_TIMING_MODE_FREE_MASTER
:
case
HAL_TIMING_MODE_BC
:
default:
/* never hit, but having it here prevents a warning */
rts_set_mode
(
RTS_MODE_GM_FREERUNNING
);
tmo_init
(
&
lock_tmo
,
LOCK_TIMEOUT_INT
,
0
);
break
;
...
...
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