--- src/usr.bin/ruptime/ruptime.c 2005/09/11 23:32:08 1.10 +++ src/usr.bin/ruptime/ruptime.c 2005/09/12 14:35:51 1.11 @@ -54,10 +54,11 @@ struct hs { struct whod *hs_wd; int hs_nusers; } *hs; -struct whod awhod; -#define LEFTEARTH(h) (now - (h) > 4*24*60*60) -#define ISDOWN(h) (now - (h)->hs_wd->wd_recvtime > 11 * 60) -#define WHDRSIZE (sizeof (awhod) - sizeof (awhod.wd_we)) + +#define LEFTEARTH(h) (now - (h) > 4*24*60*60) +#define ISDOWN(h) (now - (h)->hs_wd->wd_recvtime > 11 * 60) +#define WHDRSIZE (sizeof(struct whod) - \ + sizeof(((struct whod *)NULL)->wd_we)) size_t nhosts; time_t now;