diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-11-05 09:20:18 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-11-05 09:20:18 +0000 |
commit | e59d050b9cc534591673d05faf7661aba9076025 (patch) | |
tree | 0f3b102982d016f311e477f7ae45bf0a377fd274 /sys | |
parent | 8d077e2965065b0141503c9685d87124c1d18f34 (diff) |
wrap use of KNOTE macro arguments in () to prevent potential strange
expansion.
requested by otto@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index 38f0e89e5f8..0076d1b590c 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -1,4 +1,4 @@ -/* $OpenBSD: event.h,v 1.12 2008/11/05 09:07:56 dlg Exp $ */ +/* $OpenBSD: event.h,v 1.13 2008/11/05 09:20:17 dlg Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org> @@ -120,7 +120,7 @@ SLIST_HEAD(klist, knote); #define KNOTE(list, hint) do { \ if ((list) != NULL) \ - knote(list, hint); \ + knote((list), (hint)); \ } while (0) /* |