summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-01-24 09:36:15 +0100
committerVolker Lendecke <vl@samba.org>2021-01-28 16:58:35 +0000
commitc1614edf292ce907b5cecad56ad1643c51256269 (patch)
treebe54d01e346725a6f89bd11ad3443c9dbe3db01d
parent2b9ba992b610ebc600f573d8b3f46568d5347cec (diff)
downloadsamba-c1614edf292ce907b5cecad56ad1643c51256269.tar.gz
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 <vl@samba.org> Reviewed-by: Samuel Cabrero <scabrero@samba.org>
-rw-r--r--nsswitch/libwbclient/wbc_guid.c8
1 files 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;