[Tinyos-commits] CVS: tinyos-1.x/tools/src/uisp/src Serial.C, 1.8, 1.9

Kamin Whitehouse kaminw at users.sourceforge.net
Thu Apr 20 10:51:25 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/tools/src/uisp/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19691/src

Modified Files:
	Serial.C 
Log Message:
fixed Serial.C to compile under cykwin.  in case cykwin uses newlib instead of glibc, need to get rid of warnings on cfseti/ospeed by casting to void so that the makefile does not bug out

Index: Serial.C
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/src/uisp/src/Serial.C,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Serial.C	3 May 2005 20:41:03 -0000	1.8
--- Serial.C	20 Apr 2006 17:51:23 -0000	1.9
***************
*** 241,246 ****
    pmode.c_cflag = CS8 | CLOCAL | CREAD;
    pmode.c_iflag = IGNPAR | IGNBRK;
!   cfsetispeed(&pmode, speed);
!   cfsetospeed(&pmode, speed);
    tcsetattr(serline, TCSANOW, &pmode);
  
--- 241,246 ----
    pmode.c_cflag = CS8 | CLOCAL | CREAD;
    pmode.c_iflag = IGNPAR | IGNBRK;
!   (void)cfsetispeed(&pmode, speed);
!   (void)cfsetospeed(&pmode, speed);
    tcsetattr(serline, TCSANOW, &pmode);
  



More information about the Tinyos-commits mailing list