aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-14 05:37:49 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-14 05:37:49 -0400
commit4e69bbef63866b17ccac241aec2bd5b5c65b02a9 (patch)
tree21cdcc1b5859785b175facc23f387695990b3017
parent7f4b86763ca2f340ff9e1cae9a139f91fe349149 (diff)
downloadfujinet-chat-4e69bbef63866b17ccac241aec2bd5b5c65b02a9.tar.gz
get rid of unused nlogin() inherited from netcat. saves 162 bytes.
-rw-r--r--src/nio.c3
-rw-r--r--src/nio.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/nio.c b/src/nio.c
index 1a5b14c..cdececb 100644
--- a/src/nio.c
+++ b/src/nio.c
@@ -148,6 +148,8 @@ unsigned char nwrite(char* devicespec, unsigned char* buf, unsigned short len)
return OS.dcb.dstats; // Return SIO error or success.
}
+/* IRC doesn't need this */
+#if 0
unsigned char nlogin(char* devicespec, char *login, char *password)
{
unsigned char unit=nunit(devicespec);
@@ -181,3 +183,4 @@ unsigned char nlogin(char* devicespec, char *login, char *password)
return OS.dcb.dstats;
}
+#endif
diff --git a/src/nio.h b/src/nio.h
index df992a2..bc63da8 100644
--- a/src/nio.h
+++ b/src/nio.h
@@ -74,6 +74,6 @@ unsigned char nwrite(char* devicespec, unsigned char* buf, unsigned short len);
* @param login - The username to send
* @param password - The password to send
*/
-unsigned char nlogin(char* devicespec, char* login, char* password);
+// unsigned char nlogin(char* devicespec, char* login, char* password);
#endif /* NIO_H */