From 2b4107a8038d2313e7a0eda367f15356581aba08 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Wed, 23 Apr 2003 04:19:46 -0700 Subject: [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//stat, several ioctls, slip.c logics, etc.) and the rest will go away shortly. --- kernel/acct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') 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) -- cgit v1.2.3