Remove OS/X warning re: get_string
[melted] / src / inigo / io.c
index 431003d..06acc37 100644 (file)
@@ -29,6 +29,7 @@
 #include <ctype.h>
 #include <termios.h>
 #include <unistd.h>
+#include <sys/time.h>
 
 /* Application header files */
 #include "io.h"
@@ -75,19 +76,6 @@ char *strip_quotes( char *input )
        return input;
 }
 
-char *get_string( char *output, int maxlength, char *use )
-{
-       char *value = NULL;
-       strcpy( output, use );
-       if ( trim( chomp( fgets( output, maxlength, stdin ) ) ) != NULL )
-       {
-               if ( !strcmp( output, "" ) )
-                       strcpy( output, use );
-               value = output;
-       }
-       return value;
-}
-
 int *get_int( int *output, int use )
 {
        int *value = NULL;
@@ -160,7 +148,7 @@ int term_read( )
     FD_ZERO( &rfds );
     FD_SET( 0, &rfds );
     tv.tv_sec = 0;
-    tv.tv_usec = 250;
+    tv.tv_usec = 40000;
     n = select( 1, &rfds, NULL, NULL, &tv );
     if (n > 0) 
        {