diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-12-13 16:37:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-12-13 16:37:38 +0000 |
commit | ba1590a4b017c07576ce93524f047637c9acbcea (patch) | |
tree | d334c30bc23bef8e9958e5effc64fa96ac185c7d /sys/kern | |
parent | b5a48fb59d56fd5cd0c65a32b200d21132781170 (diff) |
acct(4) ac_tty shouldn't need NODEV from sys/param.h (which is kernel API),
-1 is sufficient to indicate the process had no controlling tty, removing
one more sys/param.h include in our userland
ok millert
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_acct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index 46cd094f47a..e8499529eeb 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_acct.c,v 1.44 2021/01/29 00:31:41 rob Exp $ */ +/* $OpenBSD: kern_acct.c,v 1.45 2021/12/13 16:37:37 deraadt Exp $ */ /* $NetBSD: kern_acct.c,v 1.42 1996/02/04 02:15:12 christos Exp $ */ /*- @@ -230,7 +230,7 @@ acct_process(struct proc *p) pr->ps_pgrp->pg_session->s_ttyp) acct.ac_tty = pr->ps_pgrp->pg_session->s_ttyp->t_dev; else - acct.ac_tty = NODEV; + acct.ac_tty = -1; /* (8) The boolean flags that tell how process terminated or misbehaved. */ acct.ac_flag = pr->ps_acflag; |