pci-label.c: size_t misspelled as mode_t
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 25 Jul 2011 03:31:06 +0000 (23:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jul 2011 17:01:09 +0000 (13:01 -0400)
no, really, strlen() and snprintf() do not return mode_t values...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/pci/pci-label.c

index 77cb2a14c896893e4898ae8ed2d6dbdc74279300..81525ae5d869cffec2f211e16db96d88cb7d7c07 100644 (file)
@@ -55,7 +55,7 @@ enum smbios_attr_enum {
        SMBIOS_ATTR_INSTANCE_SHOW,
 };
 
-static mode_t
+static size_t
 find_smbios_instance_string(struct pci_dev *pdev, char *buf,
                            enum smbios_attr_enum attribute)
 {