VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / fs / proc / kmsg.c
index 211b1fe..10d37bf 100644 (file)
@@ -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;
 }