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
a09d7a16
Commit
a09d7a16
authored
May 11, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/tools: fix warnings for buildroot 2016.02
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
23f267ff
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
10 deletions
+6
-10
com.c
userspace/tools/com.c
+1
-2
mapper.c
userspace/tools/mapper.c
+1
-2
wmapper.c
userspace/tools/wmapper.c
+1
-2
wr_mon.c
userspace/tools/wr_mon.c
+1
-2
wrs_vlans.c
userspace/tools/wrs_vlans.c
+2
-2
No files found.
userspace/tools/com.c
View file @
a09d7a16
...
...
@@ -52,9 +52,8 @@ typedef struct {char *name; int flag; } speed_spec;
void
print_status
(
int
fd
)
{
int
status
;
unsigned
int
arg
;
status
=
ioctl
(
fd
,
TIOCMGET
,
&
arg
);
ioctl
(
fd
,
TIOCMGET
,
&
arg
);
fprintf
(
stderr
,
"[STATUS]: "
);
if
(
arg
&
TIOCM_RTS
)
fprintf
(
stderr
,
"RTS "
);
if
(
arg
&
TIOCM_CTS
)
fprintf
(
stderr
,
"CTS "
);
...
...
userspace/tools/mapper.c
View file @
a09d7a16
...
...
@@ -16,7 +16,7 @@ int main(int argc, char **argv)
FILE
*
f
;
int
pagesize
=
getpagesize
();
unsigned
int
pos
,
pos_pg
,
pos_off
;
unsigned
int
len
,
len_pg
,
len_off
;
unsigned
int
len
,
len_pg
;
void
*
address
;
char
*
rest
;
...
...
@@ -45,7 +45,6 @@ int main(int argc, char **argv)
pos_pg
=
pos
&
~
(
pagesize
-
1
);
pos_off
=
pos
&
(
pagesize
-
1
);
len_pg
=
(
len
+
pos_off
+
pagesize
-
1
)
&
~
(
pagesize
-
1
);
len_off
=
(
len
+
pos_off
)
&
(
pagesize
-
1
);
address
=
mmap
(
0
,
len_pg
,
PROT_READ
,
MAP_FILE
|
MAP_PRIVATE
,
fileno
(
f
),
pos_pg
);
...
...
userspace/tools/wmapper.c
View file @
a09d7a16
...
...
@@ -16,7 +16,7 @@ int main(int argc, char **argv)
FILE
*
f
;
int
pagesize
=
getpagesize
();
unsigned
int
pos
,
pos_pg
,
pos_off
;
unsigned
int
len
,
len_pg
,
len_off
;
unsigned
int
len
,
len_pg
;
void
*
address
;
char
*
rest
;
...
...
@@ -45,7 +45,6 @@ int main(int argc, char **argv)
pos_pg
=
pos
&
~
(
pagesize
-
1
);
pos_off
=
pos
&
(
pagesize
-
1
);
len_pg
=
(
len
+
pos_off
+
pagesize
-
1
)
&
~
(
pagesize
-
1
);
len_off
=
(
len
+
pos_off
)
&
(
pagesize
-
1
);
address
=
mmap
(
0
,
len_pg
,
PROT_READ
|
PROT_WRITE
,
MAP_FILE
|
MAP_SHARED
,
fileno
(
f
),
pos_pg
);
...
...
userspace/tools/wr_mon.c
View file @
a09d7a16
...
...
@@ -3,6 +3,7 @@
#include <string.h>
#include <getopt.h>
#include <unistd.h>
#include <time.h>
#include <ppsi/ppsi.h>
#include <libwr/shmem.h>
#include <libwr/hal_shmem.h>
...
...
@@ -575,7 +576,6 @@ int main(int argc, char *argv[])
/* try a pps_gen based approach */
uint64_t
last_seconds
=
0
;
uint32_t
last_nanoseconds
=
0
;
wrs_msg_init
(
argc
,
argv
);
...
...
@@ -673,7 +673,6 @@ int main(int argc, char *argv[])
show_all
();
last_seconds
=
seconds
;
last_nanoseconds
=
nanoseconds
;
}
/* If we got broken pipe or anything, exit */
...
...
userspace/tools/wrs_vlans.c
View file @
a09d7a16
...
...
@@ -431,7 +431,7 @@ static int config_rtud(void)
{
struct
rtu_vlans_t
*
cur
;
struct
rtu_vlan_table_entry
rtu_vlan_entry
;
int
ret
,
val
;
int
val
;
cur
=
rtu_vlans
;
while
(
cur
)
{
...
...
@@ -452,7 +452,7 @@ static int config_rtud(void)
rtu_vlan_entry
.
prio_override
;
}
}
ret
=
minipc_call
(
rtud_ch
,
MINIPC_TIMEOUT
,
&
rtud_export_vlan_entry
,
&
val
,
minipc_call
(
rtud_ch
,
MINIPC_TIMEOUT
,
&
rtud_export_vlan_entry
,
&
val
,
cur
->
vid
,
cur
->
fid
,
cur
->
pmask
,
cur
->
drop
,
cur
->
prio
,
cur
->
has_prio
,
cur
->
prio_override
);
cur
=
cur
->
next
;
...
...
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