From e7828c0ba51dc8819cb00de378828ef549d1f190 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 9 Sep 2011 13:32:12 +0200 Subject: pingu_host: cleanup. use constant to indicate host online/offline This is to make code cleaner and easier to read. --- pingu_host.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pingu_host.h') diff --git a/pingu_host.h b/pingu_host.h index 80a1f53..78afbaf 100644 --- a/pingu_host.h +++ b/pingu_host.h @@ -5,6 +5,12 @@ #include "pingu_burst.h" +#define PINGU_HOST_STATUS_OFFLINE 0 +#define PINGU_HOST_STATUS_ONLINE 1 + +/* consider online by default */ +#define PINGU_HOST_DEFAULT_STATUS PINGU_HOST_STATUS_ONLINE + struct pingu_host { struct list_head host_list_entry; char *host; -- cgit v1.2.3