Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
d93b6b51
Commit
d93b6b51
authored
Jun 20, 2011
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ip: iproute fix set never used warning
parent
cdf35852
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
ip/iproute.c
ip/iproute.c
+0
-4
No files found.
ip/iproute.c
View file @
d93b6b51
...
...
@@ -712,8 +712,6 @@ int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
int
nhs_ok
=
0
;
int
scope_ok
=
0
;
int
table_ok
=
0
;
int
proto_ok
=
0
;
int
type_ok
=
0
;
int
raw
=
0
;
memset
(
&
req
,
0
,
sizeof
(
req
));
...
...
@@ -919,7 +917,6 @@ int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
if
(
rtnl_rtprot_a2n
(
&
prot
,
*
argv
))
invarg
(
"
\"
protocol
\"
value is invalid
\n
"
,
*
argv
);
req
.
r
.
rtm_protocol
=
prot
;
proto_ok
=
1
;
}
else
if
(
matches
(
*
argv
,
"table"
)
==
0
)
{
__u32
tid
;
NEXT_ARG
();
...
...
@@ -947,7 +944,6 @@ int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
rtnl_rtntype_a2n
(
&
type
,
*
argv
)
==
0
)
{
NEXT_ARG
();
req
.
r
.
rtm_type
=
type
;
type_ok
=
1
;
}
if
(
matches
(
*
argv
,
"help"
)
==
0
)
...
...
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