Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
4bddbe58
Commit
4bddbe58
authored
Feb 11, 2012
by
Matthieu Boutier
Committed by
Juliusz Chroboczek
Feb 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address some other compilation warnings.
parent
bbf85aaf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
+8
-7
interface.c
interface.c
+3
-2
kernel.c
kernel.c
+1
-1
kernel_socket.c
kernel_socket.c
+2
-2
local.c
local.c
+1
-1
message.c
message.c
+1
-1
No files found.
interface.c
View file @
4bddbe58
...
@@ -153,7 +153,7 @@ check_interface_ipv4(struct interface *ifp)
...
@@ -153,7 +153,7 @@ check_interface_ipv4(struct interface *ifp)
return
0
;
return
0
;
}
}
int
static
int
check_interface_channel
(
struct
interface
*
ifp
)
check_interface_channel
(
struct
interface
*
ifp
)
{
{
int
channel
=
IF_CONF
(
ifp
,
channel
);
int
channel
=
IF_CONF
(
ifp
,
channel
);
...
@@ -401,7 +401,8 @@ void
...
@@ -401,7 +401,8 @@ void
check_interfaces
(
void
)
check_interfaces
(
void
)
{
{
struct
interface
*
ifp
;
struct
interface
*
ifp
;
int
rc
,
ifindex
,
ifindex_changed
=
0
;
int
rc
,
ifindex_changed
=
0
;
unsigned
int
ifindex
;
FOR_ALL_INTERFACES
(
ifp
)
{
FOR_ALL_INTERFACES
(
ifp
)
{
ifindex
=
if_nametoindex
(
ifp
->
name
);
ifindex
=
if_nametoindex
(
ifp
->
name
);
...
...
kernel.c
View file @
4bddbe58
...
@@ -91,7 +91,7 @@ read_random_bytes(void *buf, size_t len)
...
@@ -91,7 +91,7 @@ read_random_bytes(void *buf, size_t len)
rc
=
-
1
;
rc
=
-
1
;
}
else
{
}
else
{
rc
=
read
(
fd
,
buf
,
len
);
rc
=
read
(
fd
,
buf
,
len
);
if
(
rc
<
len
)
if
(
rc
<
0
||
(
unsigned
)
rc
<
len
)
rc
=
-
1
;
rc
=
-
1
;
close
(
fd
);
close
(
fd
);
}
}
...
...
kernel_socket.c
View file @
4bddbe58
...
@@ -153,7 +153,7 @@ static int old_accept_redirects = -1;
...
@@ -153,7 +153,7 @@ static int old_accept_redirects = -1;
static
int
ifindex_lo
=
-
1
;
static
int
ifindex_lo
=
-
1
;
static
int
seq
;
static
int
seq
;
int
static
int
mask2len
(
const
struct
in6_addr
*
addr
)
mask2len
(
const
struct
in6_addr
*
addr
)
{
{
int
i
=
0
,
j
;
int
i
=
0
,
j
;
...
@@ -180,7 +180,7 @@ mask2len(const struct in6_addr *addr)
...
@@ -180,7 +180,7 @@ mask2len(const struct in6_addr *addr)
return
i
;
return
i
;
}
}
void
static
void
plen2mask
(
int
n
,
struct
in6_addr
*
dest
)
plen2mask
(
int
n
,
struct
in6_addr
*
dest
)
{
{
unsigned
char
*
p
;
unsigned
char
*
p
;
...
...
local.c
View file @
4bddbe58
...
@@ -112,7 +112,7 @@ local_notify_self()
...
@@ -112,7 +112,7 @@ local_notify_self()
return
;
return
;
}
}
static
char
*
static
c
onst
c
har
*
local_kind
(
int
kind
)
local_kind
(
int
kind
)
{
{
switch
(
kind
)
{
switch
(
kind
)
{
...
...
message.c
View file @
4bddbe58
...
@@ -1089,7 +1089,7 @@ buffer_update(struct interface *ifp,
...
@@ -1089,7 +1089,7 @@ buffer_update(struct interface *ifp,
ifp
->
num_buffered_updates
++
;
ifp
->
num_buffered_updates
++
;
}
}
void
static
void
buffer_update_callback
(
struct
babel_route
*
route
,
void
*
closure
)
buffer_update_callback
(
struct
babel_route
*
route
,
void
*
closure
)
{
{
buffer_update
((
struct
interface
*
)
closure
,
buffer_update
((
struct
interface
*
)
closure
,
...
...
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