mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
0b46e1c0e2
This fix will let Paho build for architectures with less than 32 bit.
32 lines
804 B
Diff
32 lines
804 B
Diff
From 8b320ad01a06dced43ea6a7119f02cb79ca6054c Mon Sep 17 00:00:00 2001
|
|
From: Oleg Hahm <oleg+eclipse@riot-os.org>
|
|
Date: Fri, 2 Dec 2022 19:12:09 +0100
|
|
Subject: [PATCH 2/4] MQTTPacket: removed unused function
|
|
|
|
---
|
|
MQTTPacket/src/MQTTPacket.c | 8 --------
|
|
1 file changed, 8 deletions(-)
|
|
|
|
diff --git a/MQTTPacket/src/MQTTPacket.c b/MQTTPacket/src/MQTTPacket.c
|
|
index 4f1f95a..0723b9a 100644
|
|
--- a/MQTTPacket/src/MQTTPacket.c
|
|
+++ b/MQTTPacket/src/MQTTPacket.c
|
|
@@ -183,14 +183,6 @@ void writeCString(unsigned char** pptr, const char* string)
|
|
*pptr += len;
|
|
}
|
|
|
|
-
|
|
-int getLenStringLen(char* ptr)
|
|
-{
|
|
- int len = 256*((unsigned char)(*ptr)) + (unsigned char)(*(ptr+1));
|
|
- return len;
|
|
-}
|
|
-
|
|
-
|
|
void writeMQTTString(unsigned char** pptr, MQTTString mqttstring)
|
|
{
|
|
if (mqttstring.lenstring.len > 0)
|
|
--
|
|
2.38.1
|
|
|