lkml.org 
[lkml]   [2006]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 03/10] uml: fix prototypes
    Date
    From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

    Fix prototypes in user.h - was needed when including user.h in kernelspace, as
    we did in previous patch.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    ---

    arch/um/include/user.h | 9 ++++++---
    1 files changed, 6 insertions(+), 3 deletions(-)

    diff --git a/arch/um/include/user.h b/arch/um/include/user.h
    index acadce3..6921f3e 100644
    --- a/arch/um/include/user.h
    +++ b/arch/um/include/user.h
    @@ -6,6 +6,10 @@
    #ifndef __USER_H__
    #define __USER_H__

    +/* Both on kernelspace and userspace this will provide the size_t definition. It should, at
    + * least. But on userspace it won't hurt surely. */
    +#include <linux/types.h>
    +
    extern void panic(const char *fmt, ...)
    __attribute__ ((format (printf, 1, 2)));
    extern int printk(const char *fmt, ...)
    @@ -13,9 +17,8 @@ extern int printk(const char *fmt, ...)
    extern void schedule(void);
    extern int in_aton(char *str);
    extern int open_gdb_chan(void);
    -/* These use size_t, however unsigned long is correct on both i386 and x86_64. */
    -extern unsigned long strlcpy(char *, const char *, unsigned long);
    -extern unsigned long strlcat(char *, const char *, unsigned long);
    +extern size_t strlcpy(char *, const char *, size_t);
    +extern size_t strlcat(char *, const char *, size_t);

    #endif

    Chiacchiera con i tuoi amici in tempo reale!
    http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-10-17 23:33    [W:0.023 / U:0.428 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site