X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fproc%2Fproc_tty.c;h=a0d4404cc91686838b7eba9304f1d7c5f5c8a4ec;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=401688e36559bf85005adb0432f9cbef002cc360;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c index 401688e36..a0d4404cc 100644 --- a/fs/proc/proc_tty.c +++ b/fs/proc/proc_tty.c @@ -217,7 +217,7 @@ void proc_tty_unregister_driver(struct tty_driver *driver) remove_proc_entry(driver->driver_name, proc_tty_driver); - driver->proc_entry = 0; + driver->proc_entry = NULL; } /* @@ -226,18 +226,18 @@ void proc_tty_unregister_driver(struct tty_driver *driver) void __init proc_tty_init(void) { struct proc_dir_entry *entry; - if (!proc_mkdir("tty", 0)) + if (!proc_mkdir("tty", NULL)) return; - proc_tty_ldisc = proc_mkdir("tty/ldisc", 0); + proc_tty_ldisc = proc_mkdir("tty/ldisc", NULL); /* * /proc/tty/driver/serial reveals the exact character counts for * serial links which is just too easy to abuse for inferring * password lengths and inter-keystroke timings during password * entry. */ - proc_tty_driver = proc_mkdir_mode("tty/driver", S_IRUSR | S_IXUSR, 0); + proc_tty_driver = proc_mkdir_mode("tty/driver", S_IRUSR | S_IXUSR, NULL); - create_proc_read_entry("tty/ldiscs", 0, 0, tty_ldiscs_read_proc,NULL); + create_proc_read_entry("tty/ldiscs", 0, NULL, tty_ldiscs_read_proc, NULL); entry = create_proc_entry("tty/drivers", 0, NULL); if (entry) entry->proc_fops = &proc_tty_drivers_operations;