aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/slip_proto.h
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2005-06-08 15:48:01 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-08 16:21:12 -0700
commitda00d9a5466558ccd9e7b7d04b13d7cb9160c876 (patch)
tree4edc27caa63126e902da3752f58adb8ee792762c /arch/um/drivers/slip_proto.h
parent3df59529ad1045da61698bb5dd8ebaa547aeb46f (diff)
downloadlinux-da00d9a5466558ccd9e7b7d04b13d7cb9160c876.tar.gz
[PATCH] uml: compile fixes for gcc 4
This is a bunch of compile fixes provoked by building UML with gcc 4. There are a bunch of signedness mismatches, a couple of uninitialized references, and a botched C99 structure initialization which had somehow gone unnoticed. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/slip_proto.h')
-rw-r--r--arch/um/drivers/slip_proto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/drivers/slip_proto.h b/arch/um/drivers/slip_proto.h
index 7206361ace4501..4c4d94a3310002 100644
--- a/arch/um/drivers/slip_proto.h
+++ b/arch/um/drivers/slip_proto.h
@@ -12,7 +12,8 @@
#define SLIP_ESC_END 0334 /* ESC ESC_END means END 'data' */
#define SLIP_ESC_ESC 0335 /* ESC ESC_ESC means ESC 'data' */
-static inline int slip_unesc(unsigned char c,char *buf,int *pos, int *esc)
+static inline int slip_unesc(unsigned char c, unsigned char *buf, int *pos,
+ int *esc)
{
int ret;