]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] drivers/acpi/sleep/proc.c warnings
authorAndrew Morton <akpm@osdl.org>
Tue, 24 Feb 2004 21:13:08 +0000 (16:13 -0500)
committerLen Brown <lenb@dhcppc3.>
Tue, 24 Feb 2004 21:13:08 +0000 (16:13 -0500)
drivers/acpi/sleep/proc.c:359: warning: initialization from incompatible pointer type
drivers/acpi/sleep/proc.c:367: warning: initialization from incompatible pointer type

drivers/acpi/sleep/proc.c

index 9290427f204170141d1a68d27ce5ecd802550815..5decea39bd5037218e0cce4325a422400f4134ea 100644 (file)
@@ -44,10 +44,10 @@ static int acpi_system_sleep_open_fs(struct inode *inode, struct file *file)
        return single_open(file, acpi_system_sleep_seq_show, PDE(inode)->data);
 }
 
-static int
+static ssize_t
 acpi_system_write_sleep (
        struct file             *file,
-       const char              *buffer,
+       const char __user       *buffer,
        size_t                  count,
        loff_t                  *ppos)
 {
@@ -189,10 +189,10 @@ get_date_field (
 }
 
 
-static int
+static ssize_t
 acpi_system_write_alarm (
        struct file             *file,
-       const char              *buffer,
+       const char __user       *buffer,
        size_t                  count,
        loff_t                  *ppos)
 {