]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add a couple of missing return values
authorSimon Tatham <anakin@pobox.com>
Mon, 27 Aug 2001 15:55:44 +0000 (15:55 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 27 Aug 2001 15:55:44 +0000 (15:55 +0000)
[originally from svn r1214]

raw.c
rlogin.c

diff --git a/raw.c b/raw.c
index 52e4b06c7e80c3d2bb600a681531a79fe4bcd71f..4bed83cdb24fff1a199422ee29b28c4a9ff64e84 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -89,9 +89,8 @@ static char *raw_init(char *host, int port, char **realhost)
  */
 static int raw_send(char *buf, int len)
 {
-
     if (s == NULL)
-       return;
+       return 0;
 
     raw_bufsize = sk_write(s, buf, len);
 
index 5c55d5a111262f2f80d89f01f9b8b84ae0afa389..a2199cf5191ac3ea5ac07b0e7d78df7d3e406208 100644 (file)
--- a/rlogin.c
+++ b/rlogin.c
@@ -137,9 +137,8 @@ static char *rlogin_init(char *host, int port, char **realhost)
  */
 static int rlogin_send(char *buf, int len)
 {
-
     if (s == NULL)
-       return;
+       return 0;
 
     rlogin_bufsize = sk_write(s, buf, len);