From 705c9b768db7539205992906aed2911425d43caa Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 18 Nov 2025 16:13:04 +0800
Subject: [PATCH] update iniparser to remove warnning
---
project/booster/proc.h | 26 +-------------------------
1 files changed, 1 insertions(+), 25 deletions(-)
diff --git a/project/booster/util_proc.h b/project/booster/proc.h
similarity index 81%
rename from project/booster/util_proc.h
rename to project/booster/proc.h
index 89856c6..7ee5113 100644
--- a/project/booster/util_proc.h
+++ b/project/booster/proc.h
@@ -2,7 +2,7 @@
* Copyright: (C) 2020 LingYun IoT System Studio
* All rights reserved.
*
- * Filename: util_proc.h
+ * Filename: proc.h
* Description: This head file is for Linux process/thread API
*
* Version: 1.0.0(7/06/2012~)
@@ -15,7 +15,6 @@
#define __UTIL_PROC_H_
#include <signal.h>
-#include <time.h>
#define PID_ASCII_SIZE 11
@@ -62,28 +61,5 @@
/* get daemon process ID from $pid_file */
extern pid_t get_daemon_pid(const char *pid_file);
-
-/* +------------------------+
- * | inline functions API |
- * +------------------------+*/
-static inline void msleep(unsigned long ms)
-{
- struct timespec cSleep;
- unsigned long ulTmp;
-
- cSleep.tv_sec = ms / 1000;
- if (cSleep.tv_sec == 0)
- {
- ulTmp = ms * 10000;
- cSleep.tv_nsec = ulTmp * 100;
- }
- else
- {
- cSleep.tv_nsec = 0;
- }
-
- nanosleep(&cSleep, 0);
- return ;
-}
#endif
--
Gitblit v1.9.1