summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2003-09-22 22:50:42 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-09-22 22:50:42 -0700
commit7f904771736fc6a6465a80541a0cb607d69772d3 (patch)
treec46dbc6ab39be234e8bde0b90f247192c09c0975 /kernel
parent59dffd62665f1f323456d7f9d79110206ecf3001 (diff)
[PATCH] prepare for 32-bit dev_t: tty usage
tty->device had been used only in a couple of places and can be calculated by tty->index and tty->driver. Field removed, its users switched to static inline dev_t tty_devnum(tty).
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 0009dfb25dcb..edb2ba573e70 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -342,7 +342,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 ? current->tty->device : 0;
+ ac.ac_tty = current->tty ? tty_devnum(current->tty) : 0;
ac.ac_flag = 0;
if (current->flags & PF_FORKNOEXEC)