diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-11-07 02:22:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-11-07 02:22:34 +0000 |
commit | b51fdc221de23a1a01a7143e381b35a38371ad8e (patch) | |
tree | c14a2eb49231a25b3a2e44ec2b60a8fdd299baee /sys | |
parent | 1626a89399b443f06ae519d192a5248e590d9ac1 (diff) |
wrap do/while construct around the function macro SESSRELE(); ok dlg
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/proc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index cbea6649d1c..da083ee9377 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.109 2008/11/01 05:59:20 deraadt Exp $ */ +/* $OpenBSD: proc.h,v 1.110 2008/11/07 02:22:33 deraadt Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -353,10 +353,10 @@ struct uidinfo *uid_find(uid_t); #define SESS_LEADER(p) ((p)->p_session->s_leader == (p)) #define SESSHOLD(s) ((s)->s_count++) -#define SESSRELE(s) { \ +#define SESSRELE(s) do { \ if (--(s)->s_count == 0) \ - pool_put(&session_pool, s); \ -} + pool_put(&session_pool, (s)); \ +} while (/* CONSTCOND */ 0) /* * Flags to fork1(). |