From 24345339421493cdacdbaae0248c3928ea9404c2 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 18 Nov 2025 12:41:40 +0800
Subject: [PATCH] update proc.h and utils.h

---
 project/thingsboard/config.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/project/thingsboard/config.h b/project/thingsboard/config.h
index acb008b..6a57b08 100644
--- a/project/thingsboard/config.h
+++ b/project/thingsboard/config.h
@@ -13,7 +13,7 @@
 #ifndef  __CONF_H_
 #define  __CONF_H_
 
-#include <stddef.h>
+#include "utils.h"
 
 enum
 {
@@ -75,7 +75,6 @@
 } iotd_ctx_t;
 
 /* get iotd_ctx address by mqtt_ctx address */
-#define container_of(ptr, type, member) ((type *)((char *)(ptr) - offsetof(type, member)))
 #define to_iotd(ctx)	container_of(ctx, iotd_ctx_t, mqtt);
 
 extern int parser_conf(const char *conf_file, iotd_ctx_t *ctx, int debug);

--
Gitblit v1.9.1