summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rw-r--r--libexec/talkd/talkd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c
index dffa24c..e81cec6 100644
--- a/libexec/talkd/talkd.c
+++ b/libexec/talkd/talkd.c
@@ -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");
}
OpenPOWER on IntegriCloud