mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 10:36:38 -04:00
net.c:162:21: error: format specifies type 'long' but the argument has type 'unsigned int' [-Werror,-Wformat] path, strlen(path), maxlen); ^~~~~~~~~~~~ net.c:162:35: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] path, strlen(path), maxlen); ^~~~~~
11 lines
470 B
C
11 lines
470 B
C
--- net.c.orig 2022-09-17 01:28:31 UTC
|
|
+++ net.c
|
|
@@ -158,7 +158,7 @@ make_unix_socket(char *path)
|
|
memset(&addr, 0, sizeof(struct sockaddr_un));
|
|
addr.sun_family = AF_UNIX;
|
|
if (strlen(path) > maxlen) {
|
|
- warnx("socket path %s is too long (%ld characters), where maximum allowed is %ld",
|
|
+ warnx("socket path %s is too long (%zu characters), where maximum allowed is %zu",
|
|
path, strlen(path), maxlen);
|
|
return -1;
|
|
}
|