diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-07 16:32:53 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-07 16:32:53 +0200 |
commit | 6d87138ea7513761ae864e65dbf03d7f614aeb5d (patch) | |
tree | 31c9d29418c2114fc278cbaf3f0d7a44efc7065e /pingu_host.c | |
parent | 322e0f8d26edc121cbeee1b467b0009d75614f99 (diff) | |
download | pingu-6d87138ea7513761ae864e65dbf03d7f614aeb5d.tar.bz2 pingu-6d87138ea7513761ae864e65dbf03d7f614aeb5d.tar.xz |
pingu: fix misc bugs
fix some segfaults and some logic bugs
Diffstat (limited to 'pingu_host.c')
-rw-r--r-- | pingu_host.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pingu_host.c b/pingu_host.c index eda2c94..26b4d83 100644 --- a/pingu_host.c +++ b/pingu_host.c @@ -8,12 +8,13 @@ void pingu_host_set_status(struct pingu_host *host, int status) { const char *action; + host->burst.active = 0; if (host->status == status) { - log_debug("%s: status is still %s", host->host, status); + log_debug("%s: status is still %i", host->host, status); return; } host->status = status; - log_info("%s: new status: %s", host->host, status); + log_info("%s: new status: %i", host->host, status); switch (host->status) { case 0: action = host->down_action; |