X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fproc%2Fkmsg.c;h=ff3b90b56e9d635546fe71868ffdc473632c5352;hb=refs%2Fheads%2Fvserver;hp=211b1fe2a825621b1b6d4719635342a8aa15771b;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/proc/kmsg.c b/fs/proc/kmsg.c index 211b1fe2a..ff3b90b56 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,13 +41,13 @@ 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; } -struct file_operations proc_kmsg_operations = { +const struct file_operations proc_kmsg_operations = { .read = kmsg_read, .poll = kmsg_poll, .open = kmsg_open,