From 6cc9c438667c56c0fb66e1b8d2366b6efb94805b Mon Sep 17 00:00:00 2001 From: Xavier Leroy <xavier.leroy@inria.fr> Date: Fri, 13 Jun 1997 15:52:43 +0000 Subject: Eradication des warnings de gcc. Nettoyages divers. Suppression de ioctl. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1597 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/unix/termios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'otherlibs/unix/termios.c') diff --git a/otherlibs/unix/termios.c b/otherlibs/unix/termios.c index 0e04281c8..7153fca17 100644 --- a/otherlibs/unix/termios.c +++ b/otherlibs/unix/termios.c @@ -144,7 +144,7 @@ static void encode_terminal_status(dst) break; } case Speed: { int which = *pc++; - speed_t speed; + speed_t speed = 0; switch (which) { case Output: speed = cfgetospeed(&terminal_status); break; @@ -198,7 +198,7 @@ static void decode_terminal_status(src) case Speed: { int which = *pc++; int baud = Int_val(*src); - int res; + int res = 0; for (i = 0; i < NSPEEDS; i++) { if (baud == speedtable[i].baud) { switch (which) { -- cgit v1.2.3-70-g09d2