]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
cfsetspeed): Change return value to int.
authorUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:53:54 +0000 (23:53 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:53:54 +0000 (23:53 +0000)
termios/cfsetspeed.c

index b3c8aa3f424b485479a21b3ce3ef505082aec9b9..91f420163e95932fc4c2815448dcca3d438f8ab9 100644 (file)
@@ -102,7 +102,7 @@ static struct speed_struct
 
 
 /* Set both the input and output baud rates stored in *TERMIOS_P to SPEED.  */
-void
+int
 cfsetspeed (struct termios *termios_p, speed_t speed)
 {
   size_t cnt;
@@ -112,14 +112,16 @@ cfsetspeed (struct termios *termios_p, speed_t speed)
       {
        cfsetispeed (termios_p, speed);
        cfsetospeed (termios_p, speed);
-       return;
+       return 0;
       }
     else if (speed == speeds[cnt].value)
       {
        cfsetispeed (termios_p, speeds[cnt].internal);
        cfsetospeed (termios_p, speeds[cnt].internal);
-       return;
+       return 0;
       }
 
   __set_errno (EINVAL);
+
+  return -1;
 }