diff options
author | guenther <guenther@openbsd.org> | 2020-05-10 00:56:06 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2020-05-10 00:56:06 +0000 |
commit | 2981a53a80e267ecdb7c4ae2ca2d40f750492133 (patch) | |
tree | e075432ef94a2a9777491c80dbaa5f05f15ab339 /sys/sys/event.h | |
parent | Use the same inittodr()/resettodr() implementation as on (diff) | |
download | wireguard-openbsd-2981a53a80e267ecdb7c4ae2ca2d40f750492133.tar.xz wireguard-openbsd-2981a53a80e267ecdb7c4ae2ca2d40f750492133.zip |
Use a double-underscore prefix for local variables declared in macros
that have arguments. Document this requirement/recommendation in style(9)
prompted by mpi@
ok deraadt@
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r-- | sys/sys/event.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index 2c345f378d6..3f42b89aaa7 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -1,4 +1,4 @@ -/* $OpenBSD: event.h,v 1.35 2020/04/07 13:27:52 visa Exp $ */ +/* $OpenBSD: event.h,v 1.36 2020/05/10 00:56:06 guenther Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org> @@ -136,10 +136,10 @@ struct klist { */ #define NOTE_SUBMIT 0x01000000 /* initial knote submission */ -#define KNOTE(list_, hint) do { \ - struct klist *list = (list_); \ - if ((list) != NULL) \ - knote((list), (hint)); \ +#define KNOTE(list, hint) do { \ + struct klist *__list = (list); \ + if (__list != NULL) \ + knote(__list, hint); \ } while (0) #define KN_HASHSIZE 64 /* XXX should be tunable */ |