X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fproc%2Fkmsg.c;h=10d37bf252060fab81b641d56e4573aaa56fe110;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=211b1fe2a825621b1b6d4719635342a8aa15771b;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/fs/proc/kmsg.c b/fs/proc/kmsg.c index 211b1fe2a..10d37bf25 100644 --- a/fs/proc/kmsg.c +++ b/fs/proc/kmsg.c @@ -33,7 +33,7 @@ static int kmsg_release(struct inode * inode, struct file * file) static ssize_t kmsg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { - if ((file->f_flags & O_NONBLOCK) && !do_syslog(9, 0, 0)) + if ((file->f_flags & O_NONBLOCK) && !do_syslog(9, NULL, 0)) return -EAGAIN; return do_syslog(2, buf, count); } @@ -41,7 +41,7 @@ static ssize_t kmsg_read(struct file *file, char __user *buf, static unsigned int kmsg_poll(struct file *file, poll_table *wait) { poll_wait(file, &log_wait, wait); - if (do_syslog(9, 0, 0)) + if (do_syslog(9, NULL, 0)) return POLLIN | POLLRDNORM; return 0; }