From 40198e98a155d97a1b0b77d73580497a3c1c20ec Mon Sep 17 00:00:00 2001 From: alfred Date: Wed, 14 Jul 2004 06:47:32 +0000 Subject: do { } while(0) KNOTE macro, whitespace --- sys/sys/event.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/sys/event.h b/sys/sys/event.h index b735dd5..4c7c0fe 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -118,7 +118,7 @@ struct kevent { * This is currently visible to userland to work around broken * programs which pull in . */ -#include +#include struct knote; SLIST_HEAD(klist, knote); @@ -128,7 +128,8 @@ SLIST_HEAD(klist, knote); MALLOC_DECLARE(M_KQUEUE); #endif -#define KNOTE(list, hint) if ((list) != NULL) knote(list, hint) +#define KNOTE(list, hint) \ + do { if ((list) != NULL) knote(list, hint); } while (0) /* * Flag indicating hint is a signal. Used by EVFILT_SIGNAL, and also -- cgit v1.1