diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-09 13:32:12 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-09 13:32:12 +0200 |
commit | e7828c0ba51dc8819cb00de378828ef549d1f190 (patch) | |
tree | 76e5fbc044e9974d176ecc6056d37bb946370da7 /pingu_burst.c | |
parent | e148ba2db8e2b2e38c5e4f8ec672de74f72fcf6d (diff) | |
download | pingu-e7828c0ba51dc8819cb00de378828ef549d1f190.tar.bz2 pingu-e7828c0ba51dc8819cb00de378828ef549d1f190.tar.xz |
pingu_host: cleanup. use constant to indicate host online/offline
This is to make code cleaner and easier to read.
Diffstat (limited to 'pingu_burst.c')
-rw-r--r-- | pingu_burst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pingu_burst.c b/pingu_burst.c index 2f4a55b..0ec89a4 100644 --- a/pingu_burst.c +++ b/pingu_burst.c @@ -22,7 +22,7 @@ void ping_burst_start(struct ev_loop *loop, struct pingu_host *host) /* we bind to device every burst in case an iface disappears and comes back. e.g ppp0 */ if (pingu_iface_bind_socket(host->iface, host->status) < 0) { - pingu_host_set_status(host, 0); + pingu_host_set_status(host, PINGU_HOST_STATUS_OFFLINE); return; } |