Page MenuHomeFreeBSD

D41376.id125729.diff
No OneTemporary

D41376.id125729.diff

diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -876,7 +876,7 @@
setlinebuf(stdout);
consfile.f_type = F_CONSOLE;
- (void)strlcpy(consfile.fu_fname, ctty + sizeof _PATH_DEV - 1,
+ (void)strlcpy(consfile.fu_fname, ctty + sizeof(_PATH_DEV) - 1,
sizeof(consfile.fu_fname));
(void)strlcpy(bootfile, getbootfile(), sizeof(bootfile));
@@ -3002,7 +3002,7 @@
pri = decode(buf, prioritynames);
if (pri < 0) {
errno = 0;
- (void)snprintf(ebuf, sizeof ebuf,
+ (void)snprintf(ebuf, sizeof(ebuf),
"unknown priority name \"%s\"", buf);
logerror(ebuf);
free(f);
@@ -3032,7 +3032,7 @@
i = decode(buf, facilitynames);
if (i < 0) {
errno = 0;
- (void)snprintf(ebuf, sizeof ebuf,
+ (void)snprintf(ebuf, sizeof(ebuf),
"unknown facility name \"%s\"",
buf);
logerror(ebuf);
@@ -3540,11 +3540,11 @@
printf("numeric, ");
getnameinfo(sstosa(&ap->a_addr),
(sstosa(&ap->a_addr))->sa_len,
- ip, sizeof ip, NULL, 0, NI_NUMERICHOST);
+ ip, sizeof(ip), NULL, 0, NI_NUMERICHOST);
printf("addr = %s, ", ip);
getnameinfo(sstosa(&ap->a_mask),
(sstosa(&ap->a_mask))->sa_len,
- ip, sizeof ip, NULL, 0, NI_NUMERICHOST);
+ ip, sizeof(ip), NULL, 0, NI_NUMERICHOST);
printf("mask = %s; ", ip);
} else {
printf("domainname = %s; ", ap->a_name);
@@ -3716,7 +3716,7 @@
*/
if (fcntl(pfd[1], F_SETFL, O_NONBLOCK) == -1) {
/* This is bad. */
- (void)snprintf(errmsg, sizeof errmsg,
+ (void)snprintf(errmsg, sizeof(errmsg),
"Warning: cannot change pipe to PID %d to "
"non-blocking behaviour.",
(int)pid);
@@ -3771,7 +3771,7 @@
if (code == 0)
return;
}
- (void)snprintf(buf, sizeof buf,
+ (void)snprintf(buf, sizeof(buf),
"Logging subprocess %d (%s) exited %s %d.",
pid, name, reason, code);
logerror(buf);

File Metadata

Mime Type
text/plain
Expires
Fri, May 22, 10:32 AM (19 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33418776
Default Alt Text
D41376.id125729.diff (1 KB)

Event Timeline