example/hello_ll_uds: Switch to %zu and avoid 32bit build warning
authorBernd Schubert <bschubert@ddn.com>
Sun, 16 Feb 2025 21:56:46 +0000 (22:56 +0100)
committerBernd Schubert <bernd@bsbernd.com>
Tue, 18 Feb 2025 21:32:49 +0000 (22:32 +0100)
Signed-off-by: Bernd Schubert <bschubert@ddn.com>
example/hello_ll_uds.c

index a566155dc1c71671fa89179db56290dd2e764328..e9cd17315f8cc3864a9266fdd3c972ff914044c0 100644 (file)
@@ -185,8 +185,8 @@ static int create_socket(const char *socket_path) {
 
        if (strnlen(socket_path, sizeof(addr.sun_path)) >=
                sizeof(addr.sun_path)) {
-               printf("Socket path may not be longer than %lu characters\n",
-                        sizeof(addr.sun_path) - 1);
+               printf("Socket path may not be longer than %zu characters\n",
+                      sizeof(addr.sun_path) - 1);
                return -1;
        }