diff options
author | alfred <alfred@FreeBSD.org> | 2004-07-14 06:47:32 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2004-07-14 06:47:32 +0000 |
commit | 40198e98a155d97a1b0b77d73580497a3c1c20ec (patch) | |
tree | a63d7ed16fbfb741be6a788a8987521535a89e78 | |
parent | 02c3431e7e6c88598e37f5a23586e846b224036d (diff) | |
download | FreeBSD-src-40198e98a155d97a1b0b77d73580497a3c1c20ec.zip FreeBSD-src-40198e98a155d97a1b0b77d73580497a3c1c20ec.tar.gz |
do { } while(0) KNOTE macro, whitespace
-rw-r--r-- | sys/sys/event.h | 5 |
1 files 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 <sys/proc.h>. */ -#include <sys/queue.h> +#include <sys/queue.h> 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 |