Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/wpa/dist/src/common wpa: fix Clang build



details:   https://anonhg.NetBSD.org/src/rev/8e8fd97b21d9
branches:  trunk
changeset: 379160:8e8fd97b21d9
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat May 15 19:19:55 2021 +0000

description:
wpa: fix Clang build

src/external/bsd/wpa/bin/hostapd/../../dist/src/common/dpp.c:5377:7:
error: format specifies type 'unsigned long' but the argument has type
'os_time_t' (aka 'long long') [-Werror,-Wformat]

diffstat:

 external/bsd/wpa/dist/src/common/dpp.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r a4913406057b -r 8e8fd97b21d9 external/bsd/wpa/dist/src/common/dpp.c
--- a/external/bsd/wpa/dist/src/common/dpp.c    Sat May 15 19:12:14 2021 +0000
+++ b/external/bsd/wpa/dist/src/common/dpp.c    Sat May 15 19:19:55 2021 +0000
@@ -5373,8 +5373,9 @@ int dpp_key_expired(const char *timestam
        }
 
        if (now.sec > utime) {
-               wpa_printf(MSG_DEBUG, "DPP: Key has expired (%lu < %lu)",
-                          utime, now.sec);
+               wpa_printf(MSG_DEBUG, "DPP: Key has expired (%llu < %llu)",
+                          (unsigned long long)utime,
+                          (unsigned long long)now.sec);
                return 1;
        }
 



Home | Main Index | Thread Index | Old Index