aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-28 07:26:46 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-28 07:26:46 -0400
commit87b234ba73e9abb4ecb8966ef631a0d7b8f5915a (patch)
tree8435c18071937d092e3265bb4c708caab24b9135 /src/main.c
parent898cfeb8a558245fc48bbba948c16205509e6a11 (diff)
downloadfujinet-chat-87b234ba73e9abb4ecb8966ef631a0d7b8f5915a.tar.gz
Save some more bytes (strip down nio.c API).
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 5535343..4a938b9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -78,7 +78,7 @@ void txbuf_send(void) {
tx_buf[txbuflen++] = 0x0a;
ind_net_tx();
- nwrite(conf->url, tx_buf, txbuflen);
+ nwrite(tx_buf, txbuflen);
ind_net_idle();
txbuf_init();
}
@@ -95,7 +95,7 @@ int fn_connect(void) {
scr_print_current(conf->url);
scr_eol_current();
- err = nopen(conf->url, FNET_TRANSLATION);
+ err = nopen();
if(err != SUCCESS) {
scr_print_current("Connection failed: ");
@@ -118,7 +118,7 @@ int fn_connect(void) {
}
void fn_disconnect(void) {
- nclose(conf->url);
+ nclose();
// Restore old PROCEED interrupt.
PIA.pactl &= ~1; // disable interrupts