Whitespace.

This commit is contained in:
bms 2004-06-14 22:44:13 +00:00
parent bf98536752
commit 34bae8c803

View File

@ -75,7 +75,7 @@ CTL_RESPONSE response;
int debug = 0;
long lastmsgtime;
char hostname[MAXHOSTNAMELEN];
char hostname[MAXHOSTNAMELEN];
#define TIMEOUT 30
#define MAXIDLE 120
@ -109,7 +109,7 @@ main(int argc, char *argv[])
signal(SIGALRM, timeout);
alarm(TIMEOUT);
for (;;) {
cc = recv(0, (char *)mp, sizeof (*mp), 0);
cc = recv(0, (char *)mp, sizeof(*mp), 0);
if (cc != sizeof (*mp)) {
if (cc < 0 && errno != EINTR)
syslog(LOG_WARNING, "recv: %m");
@ -122,7 +122,7 @@ main(int argc, char *argv[])
process_request(mp, &response);
/* can block here, is this what I want? */
cc = sendto(STDIN_FILENO, (char *)&response,
sizeof (response), 0, &ctl_addr, sizeof (ctl_addr));
sizeof(response), 0, &ctl_addr, sizeof(ctl_addr));
if (cc != sizeof (response))
syslog(LOG_WARNING, "sendto: %m");
}