Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
12067513
Commit
12067513
authored
Oct 10, 2006
by
Mike Hibler
Browse files
Partial undo of 1.13: no need to check whether there is a LAN object,
we will never be called if not.
parent
c04676dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
event/delay-agent/main.c
View file @
12067513
...
...
@@ -301,19 +301,17 @@ int main(int argc, char **argv)
return
1
;
}
if
(
strlen
(
lanobjects
))
{
strcat
(
lanobjects
,
","
);
strcat
(
lanobjects
,
ADDRESSTUPLE_ALL
);
event_t
->
objname
=
lanobjects
;
event_t
->
objtype
=
TBDB_OBJECTTYPE_LINK
;
event_t
->
eventtype
=
TBDB_EVENTTYPE_RESET
;
event_t
->
host
=
ADDRESSTUPLE_ANY
;
event_t
->
expt
=
myexp
;
strcat
(
lanobjects
,
","
);
strcat
(
lanobjects
,
ADDRESSTUPLE_ALL
);
event_t
->
objname
=
lanobjects
;
event_t
->
objtype
=
TBDB_OBJECTTYPE_LINK
;
event_t
->
eventtype
=
TBDB_EVENTTYPE_RESET
;
event_t
->
host
=
ADDRESSTUPLE_ANY
;
event_t
->
expt
=
myexp
;
if
(
event_subscribe
(
handle
,
reset_callback
,
event_t
,
NULL
)
==
NULL
)
{
error
(
"could not subscribe to %d event
\n
"
,
event_t
->
eventtype
);
return
1
;
}
if
(
event_subscribe
(
handle
,
reset_callback
,
event_t
,
NULL
)
==
NULL
)
{
error
(
"could not subscribe to %d event
\n
"
,
event_t
->
eventtype
);
return
1
;
}
info
(
"subscribed...
\n
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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