Whitespace.
This commit is contained in:
parent
17d7976856
commit
872b0f7946
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130496
@ -75,7 +75,7 @@ CTL_RESPONSE response;
|
|||||||
int debug = 0;
|
int debug = 0;
|
||||||
long lastmsgtime;
|
long lastmsgtime;
|
||||||
|
|
||||||
char hostname[MAXHOSTNAMELEN];
|
char hostname[MAXHOSTNAMELEN];
|
||||||
|
|
||||||
#define TIMEOUT 30
|
#define TIMEOUT 30
|
||||||
#define MAXIDLE 120
|
#define MAXIDLE 120
|
||||||
@ -109,7 +109,7 @@ main(int argc, char *argv[])
|
|||||||
signal(SIGALRM, timeout);
|
signal(SIGALRM, timeout);
|
||||||
alarm(TIMEOUT);
|
alarm(TIMEOUT);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
cc = recv(0, (char *)mp, sizeof (*mp), 0);
|
cc = recv(0, (char *)mp, sizeof(*mp), 0);
|
||||||
if (cc != sizeof (*mp)) {
|
if (cc != sizeof (*mp)) {
|
||||||
if (cc < 0 && errno != EINTR)
|
if (cc < 0 && errno != EINTR)
|
||||||
syslog(LOG_WARNING, "recv: %m");
|
syslog(LOG_WARNING, "recv: %m");
|
||||||
@ -122,7 +122,7 @@ main(int argc, char *argv[])
|
|||||||
process_request(mp, &response);
|
process_request(mp, &response);
|
||||||
/* can block here, is this what I want? */
|
/* can block here, is this what I want? */
|
||||||
cc = sendto(STDIN_FILENO, (char *)&response,
|
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))
|
if (cc != sizeof (response))
|
||||||
syslog(LOG_WARNING, "sendto: %m");
|
syslog(LOG_WARNING, "sendto: %m");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user