Misc. cleanups.

* daemon.h:
* gnuserv.c: (syslog_message), (syslog_io_message):
* main.c: (handle_parent_connection):
* slave.c: (handle_slave_connection), (handle_slave_command): Misc. cleanups.
This commit is contained in:
Benoît Dejean
2005-02-15 10:35:44 +00:00
parent 0fdfd65a2a
commit b43e879cc0
5 changed files with 24 additions and 19 deletions

View File

@@ -63,12 +63,12 @@ handle_parent_connection (int s)
if (enable_debug)
syslog_message (LOG_DEBUG,
"Parent (%d) received command %d from client.",
getpid (), (int) cmnd->command);
getpid (), (int)cmnd->command);
if (cmnd->data_size >= BUFSIZ) {
syslog_message (LOG_WARNING,
"Client sent %d bytes, but buffer is %d",
cmnd->data_size, BUFSIZ);
"Client sent %d bytes, but buffer is %lu",
(int)cmnd->data_size, (unsigned long)BUFSIZ);
return;
}
@@ -229,8 +229,8 @@ handle_parent_connection (int s)
0, NULL);
break;
default:
syslog_message (LOG_ERR, "Parent received unknown command %u.",
cmnd->command);
syslog_message (LOG_ERR, "Parent received unknown command %d.",
(int)cmnd->command);
break;
}
}