From c1614edf292ce907b5cecad56ad1643c51256269 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 24 Jan 2021 09:36:15 +0100 Subject: [PATCH] libwbclient: Fix wbcStringToGuid The "x" sscanf conversion specifier requires an unsigned int. It is likely that this is actually a uint32_t, don't rely on that. Signed-off-by: Volker Lendecke Reviewed-by: Samuel Cabrero --- nsswitch/libwbclient/wbc_guid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nsswitch/libwbclient/wbc_guid.c b/nsswitch/libwbclient/wbc_guid.c index 52a64ca5801..631d7ecb751 100644 --- a/nsswitch/libwbclient/wbc_guid.c +++ b/nsswitch/libwbclient/wbc_guid.c @@ -53,10 +53,10 @@ wbcErr wbcGuidToString(const struct wbcGuid *guid, wbcErr wbcStringToGuid(const char *str, struct wbcGuid *guid) { - uint32_t time_low; - uint32_t time_mid, time_hi_and_version; - uint32_t clock_seq[2]; - uint32_t node[6]; + unsigned int time_low; + unsigned int time_mid, time_hi_and_version; + unsigned int clock_seq[2]; + unsigned int node[6]; int i; wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;