minor related updates: warnings, hostinfo, calc, debug, ...

This commit is contained in:
joonicks
2025-09-21 16:26:51 +02:00
parent c26b51deda
commit 746c93f367
7 changed files with 48 additions and 12 deletions

View File

@@ -269,7 +269,7 @@ int SockAccept(int sock)
/*
* Format text and send to a socket or file descriptor
*/
int to_file(int sock, const char *format, ...)
int to_file(const int sock, const char *format, ...)
{
va_list msg;
#if defined(DEBUG) && !defined(GENCMD_C)
@@ -357,7 +357,8 @@ void to_user_q(const char *target, const char *format, ...)
if (STARTUP_ECHOTOCONSOLE)
{
write(1,message,strlen(message));
int n;
n = write(1,message,strlen(message));
return;
}