summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/termios.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1997-06-13 15:52:43 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1997-06-13 15:52:43 +0000
commit6cc9c438667c56c0fb66e1b8d2366b6efb94805b (patch)
treecebcadbaa332f69410bf6438251c686168339687 /otherlibs/unix/termios.c
parentf7ccaf7b6c4365b7b1b640949de3b3e54356782c (diff)
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
Diffstat (limited to 'otherlibs/unix/termios.c')
-rw-r--r--otherlibs/unix/termios.c4
1 files changed, 2 insertions, 2 deletions
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) {