Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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 core collection
Commits
8cf061c6
Commit
8cf061c6
authored
May 16, 2014
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eca: fix a few command-line bugs
parent
e0e3a728
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
eca-ctl.cpp
modules/wr_eca/eca-ctl.cpp
+3
-3
No files found.
modules/wr_eca/eca-ctl.cpp
View file @
8cf061c6
...
...
@@ -323,7 +323,7 @@ int main(int argc, char** argv) {
strcasecmp
(
command
,
"ahook"
)
==
0
||
strcasecmp
(
command
,
"ohook"
)
==
0
)
{
if
(
optind
+
3
>
argc
)
{
fprintf
(
stderr
,
"%s: expecting exactly one argument: %s <address>
\n
"
,
command
,
program
);
fprintf
(
stderr
,
"%s: expecting exactly one argument: %s <address>
\n
"
,
program
,
command
);
return
1
;
}
if
(
optind
+
3
<
argc
)
{
...
...
@@ -395,12 +395,12 @@ int main(int argc, char** argv) {
}
/* Select default channel */
if
(
channel_id
==
-
1
&&
ecas
[
eca_id
].
channels
.
size
()
==
1
)
{
if
(
channel_id
==
-
1
&&
eca
_id
!=
-
1
&&
eca
s
[
eca_id
].
channels
.
size
()
==
1
)
{
channel_id
=
0
;
}
/* Select default stream */
if
(
stream_id
==
-
1
&&
ecas
[
eca_id
].
streams
.
size
()
==
1
)
{
if
(
stream_id
==
-
1
&&
eca
_id
!=
-
1
&&
eca
s
[
eca_id
].
streams
.
size
()
==
1
)
{
stream_id
=
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