Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115677285
D41376.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D41376.diff
View Options
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
@@ -809,7 +809,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));
@@ -2923,7 +2923,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);
@@ -2950,7 +2950,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);
@@ -3461,11 +3461,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);
@@ -3513,8 +3513,8 @@
if (getaddrinfo(name, NULL, &hints, &res) == 0)
freeaddrinfo(res);
else if (strchr(name, '.') == NULL) {
- strlcat(name, ".", sizeof name);
- strlcat(name, LocalDomain, sizeof name);
+ strlcat(name, ".", sizeof(name));
+ strlcat(name, LocalDomain, sizeof(name));
}
if (getnameinfo(sa, sa->sa_len, ip, sizeof(ip), port, sizeof(port),
NI_NUMERICHOST | NI_NUMERICSERV) != 0)
@@ -3648,7 +3648,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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 28, 12:05 AM (16 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17823369
Default Alt Text
D41376.diff (2 KB)
Attached To
Mode
D41376: syslogd: Fix sizeof() styling
Attached
Detach File
Event Timeline
Log In to Comment