--- include/libssh/libssh.h     2005/10/26 04:07:35     1.1
+++ include/libssh/libssh.h     2005/10/26 04:07:53
@@ -40,10 +40,10 @@
 typedef struct ssh_kbdint SSH_KBDINT;
 
 /* integer values */
-typedef u_int32_t u32;
-typedef u_int16_t u16;
-typedef u_int64_t u64;
-typedef u_int8_t u8;
+typedef uint32_t u32;
+typedef uint16_t u16;
+typedef uint64_t u64;
+typedef uint8_t u8;
 
 /* the offsets of methods */
 #define KEX_ALGO 0
--- libssh/connect.c    2005/10/26 04:16:22     1.1
+++ libssh/connect.c    2005/10/26 04:16:47
@@ -70,7 +70,7 @@
 #endif
     if(!hp){
         --count;
-        ssh_set_error(NULL,SSH_FATAL,"Failed to resolve hostname %s (%s)",host,hstrerror(h_errno));
+        ssh_set_error(NULL,SSH_FATAL,"Failed to resolve hostname %s", host);
         return -1;
     }
     memset(&sa,0,sizeof(sa));
@@ -93,7 +93,7 @@
 #endif
         if(!hp){
             --count;
-            ssh_set_error(NULL,SSH_FATAL,"Failed to resolve bind address %s (%s)",bind_addr,hstrerror(h_errno));
+            ssh_set_error(NULL,SSH_FATAL,"Failed to resolve bind address %s",bind_addr);
             return -1;
         }
     }
--- sample.c    2005/10/26 04:16:57     1.2
+++ sample.c    2005/10/26 04:18:38
@@ -179,7 +179,11 @@
     if(interactive){
         tcgetattr(0,&terminal_local);
         memcpy(&terminal,&terminal_local,sizeof(struct termios));
-        cfmakeraw(&terminal_local);
+       terminal_local.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
+       terminal_local.c_oflag &= ~OPOST;
+       terminal_local.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
+       terminal_local.c_cflag &= ~(CSIZE|PARENB);
+       terminal_local.c_cflag |= CS8;
         tcsetattr(0,TCSANOW,&terminal_local);
         setsignal();
     }

