Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
421cbbaf
Commit
421cbbaf
authored
Nov 05, 2020
by
Antoine Kaufmann
Browse files
net_switch: fix 'unknown option s' warning
parent
7ebf2dd4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
net_switch/net_switch.cc
net_switch/net_switch.cc
+2
-0
No files found.
net_switch/net_switch.cc
View file @
421cbbaf
...
@@ -125,9 +125,11 @@ int main(int argc, char *argv[])
...
@@ -125,9 +125,11 @@ int main(int argc, char *argv[])
struct
netsim_interface
nsif
;
struct
netsim_interface
nsif
;
int
sync
=
1
;
int
sync
=
1
;
if
(
netsim_init
(
&
nsif
,
optarg
,
&
sync
)
!=
0
)
{
if
(
netsim_init
(
&
nsif
,
optarg
,
&
sync
)
!=
0
)
{
fprintf
(
stderr
,
"connecting to %s failed
\n
"
,
optarg
);
return
EXIT_FAILURE
;
return
EXIT_FAILURE
;
}
}
nsifs
.
push_back
(
nsif
);
nsifs
.
push_back
(
nsif
);
break
;
}
}
default:
default:
fprintf
(
stderr
,
"unknown option %c
\n
"
,
c
);
fprintf
(
stderr
,
"unknown option %c
\n
"
,
c
);
...
...
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