uml: fix prototypes
Declare strlcpy and strlcat more correctly. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b7ec15bd00
commit
c2f239d93e
|
@ -14,6 +14,11 @@
|
||||||
*/
|
*/
|
||||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This will provide the size_t definition in both kernel and userspace builds
|
||||||
|
*/
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
extern void panic(const char *fmt, ...)
|
extern void panic(const char *fmt, ...)
|
||||||
__attribute__ ((format (printf, 1, 2)));
|
__attribute__ ((format (printf, 1, 2)));
|
||||||
extern int printk(const char *fmt, ...)
|
extern int printk(const char *fmt, ...)
|
||||||
|
@ -21,8 +26,7 @@ extern int printk(const char *fmt, ...)
|
||||||
extern void schedule(void);
|
extern void schedule(void);
|
||||||
extern int in_aton(char *str);
|
extern int in_aton(char *str);
|
||||||
extern int open_gdb_chan(void);
|
extern int open_gdb_chan(void);
|
||||||
/* These use size_t, however unsigned long is correct on both i386 and x86_64. */
|
extern size_t strlcpy(char *, const char *, size_t);
|
||||||
extern unsigned long strlcpy(char *, const char *, unsigned long);
|
extern size_t strlcat(char *, const char *, size_t);
|
||||||
extern unsigned long strlcat(char *, const char *, unsigned long);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue