This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]