From fa7b8b2d1d6db8aa7db31633dcdbb1093e481dea Mon Sep 17 00:00:00 2001 From: Ian Craggs Date: Tue, 10 Oct 2023 11:37:43 +0100 Subject: [PATCH] Session expiry should be unsigned for 32 bit --- src/Clients.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Clients.h b/src/Clients.h index 130a9622..67489582 100644 --- a/src/Clients.h +++ b/src/Clients.h @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2022 IBM Corp. and Ian Craggs + * Copyright (c) 2009, 2023 IBM Corp. and Ian Craggs * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v2.0 @@ -150,7 +150,7 @@ typedef struct void* afterRead_context; /**< context to be used with the persistence afterRead callback */ void* context; /**< calling context - used when calling disconnect_internal */ int MQTTVersion; /**< the version of MQTT being used, 3, 4 or 5 */ - int sessionExpiry; /**< MQTT 5 session expiry */ + unsigned int sessionExpiry; /**< MQTT 5 session expiry */ char* httpProxy; /**< HTTP proxy */ char* httpsProxy; /**< HTTPS proxy */ #if defined(OPENSSL)