First version, development moved to 5110-connected machine
[gnokii.git] / common / devices / unixserial.c
index bc7e37e..ba66941 100644 (file)
 
 /* Structure to backup the setting of the terminal. */
 
-struct termios serial_termios;
+static struct termios serial_termios;
 
 /* Open the serial port and store the settings. */
 
+#ifdef UCLINUX
+static
+#endif /* UCLINUX */
 int serial_open(__const char *__file, int __oflag) {
 
   int __fd;
@@ -193,6 +196,8 @@ void serial_setdtrrts(int __fd, int __dtr, int __rts) {
 }
 
 
+#ifndef UCLINUX
+
 int serial_select(int fd, struct timeval *timeout) {
 
   fd_set readfds;
@@ -204,6 +209,8 @@ int serial_select(int fd, struct timeval *timeout) {
 
 }
 
+#endif /* UCLINUX */
+
 
 /* Change the speed of the serial device. */
 
@@ -235,7 +242,7 @@ void serial_changespeed(int __fd, int __speed) {
   if (cfsetspeed(&t, speed) == -1)
        fprintf(stdout,_("Serial port speed setting failed\n"));
 #else
-  cfsetspeed(&t, speed);
+  (void)cfsetspeed(&t, speed);
 #endif
 
   tcsetattr(__fd, TCSADRAIN, &t);