This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
ioctl.cc fix
- From: "Sergey Okhapkin" <sos at prospect dot com dot ru>
- To: "Cygwin-Patches" <cygwin-patches at cygwin dot com>
- Date: Mon, 4 Nov 2002 19:17:51 -0500
- Subject: ioctl.cc fix
I see no output from "debug_printf ("returning %d", res);" in trace file
without this fix... gcc bug?
2002-11-04 Sergey Okhapkin <sos@prospect.com.ru>
* ioctl.cc (ioctl): Add default case.
Index: ioctl.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/ioctl.cc,v
retrieving revision 1.18
diff -u -p -r1.18 ioctl.cc
--- ioctl.cc 4 Nov 2002 04:09:14 -0000 1.18
+++ ioctl.cc 5 Nov 2002 00:14:48 -0000
@@ -50,6 +50,8 @@ ioctl (int fd, int cmd, ...)
return tcsetattr (fd, TCSADRAIN, (struct termios *) argp);
case TCSETAF:
return tcsetattr (fd, TCSAFLUSH, (struct termios *) argp);
+ default:
+ break;
}
int res = cfd->ioctl (cmd, argp);
Sergey Okhapkin
Somerset, NJ