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/36f2eaaebbc5
branches:  trunk
changeset: 983311:36f2eaaebbc5
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 df23abb33703 -r 36f2eaaebbc5 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 @@
        }
 
        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