aboutsummaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-03-29 11:47:35 -0400
committerFranklin Wei <git@fwei.tk>2016-03-29 11:47:35 -0400
commit8426162eb0a463118e77e3fe32b96552565584a1 (patch)
tree0ca533cd57581fbc71f26e2d5bf0fe108ee9ba95 /src/client.c
parent2687778cf7c099e47de410d62d26d874f4dcebba (diff)
downloadnetcosm-8426162eb0a463118e77e3fe32b96552565584a1.zip
netcosm-8426162eb0a463118e77e3fe32b96552565584a1.tar.gz
netcosm-8426162eb0a463118e77e3fe32b96552565584a1.tar.bz2
netcosm-8426162eb0a463118e77e3fe32b96552565584a1.tar.xz
add things
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client.c b/src/client.c
index 90a166b..45139e8 100644
--- a/src/client.c
+++ b/src/client.c
@@ -46,9 +46,9 @@ void out_raw(const void *buf, size_t len)
error("out() called from master");
if(!len)
return;
-
+
try_again:
-
+
while(output_locked);
/* something weird happened and the value changed between the loop and here */
@@ -102,7 +102,9 @@ void __attribute__((format(printf,1,2))) out(const char *fmt, ...)
if(is_newline)
++ptr; /* skip the newline */
- while(*ptr == ' ')
+
+ /* skip following spaces */
+ while(*ptr == ' ')
++ptr;
last_space = 0;
pos = 0;
@@ -186,7 +188,7 @@ tryagain:
}
}
-/* still not encrypted, but a bit more secure than echoing the password! */
+/* still not encrypted, but a bit better than echoing the password! */
char *client_read_password(void)
{
telnet_echo_off();