summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2003-04-23 04:19:46 -0700
committerChristoph Hellwig <hch@lst.de>2003-04-23 04:19:46 -0700
commit2b4107a8038d2313e7a0eda367f15356581aba08 (patch)
treee4904953697cdb5c70983ed914179f0fc83c4460 /kernel
parent50dceaae05bc726f98ecbcc1dca8317a8d759af0 (diff)
[PATCH] tty cleanups (11/12)
tty->device switched to dev_t There are very few uses of tty->device left by now; most of them actually want dev_t (process accounting, proc/<pid>/stat, several ioctls, slip.c logics, etc.) and the rest will go away shortly.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/acct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/acct.c b/kernel/acct.c
index 47736b0fb8e5..2de6d736f7d8 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -335,7 +335,7 @@ static void do_acct_process(long exitcode, struct file *file)
ac.ac_stime = encode_comp_t(current->stime);
ac.ac_uid = current->uid;
ac.ac_gid = current->gid;
- ac.ac_tty = (current->tty) ? kdev_t_to_nr(current->tty->device) : 0;
+ ac.ac_tty = current->tty ? current->tty->device : 0;
ac.ac_flag = 0;
if (current->flags & PF_FORKNOEXEC)