Add a couple of missing return values
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 27 Aug 2001 15:55:44 +0000 (15:55 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 27 Aug 2001 15:55:44 +0000 (15:55 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@1214 cda61777-01e9-0310-a592-d414129be87e

raw.c
rlogin.c

diff --git a/raw.c b/raw.c
index 52e4b06..4bed83c 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 5c55d5a..a2199cf 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);