39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
|
|
From a43af4c9df148d3a71666fdcfda3f2bb5a83fc99 Mon Sep 17 00:00:00 2001
|
||
|
|
From: wo_cow <niuqianqian@huawei.com>
|
||
|
|
Date: Mon, 9 Jan 2023 16:14:15 +0800
|
||
|
|
Subject: [PATCH] fix bug
|
||
|
|
|
||
|
|
---
|
||
|
|
src/common/common.h | 2 +-
|
||
|
|
src/common/util.c | 2 +-
|
||
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/src/common/common.h b/src/common/common.h
|
||
|
|
index 64c040a..72848f8 100644
|
||
|
|
--- a/src/common/common.h
|
||
|
|
+++ b/src/common/common.h
|
||
|
|
@@ -192,6 +192,6 @@ int exec_cmd(const char *cmd, char *buf, unsigned int buf_len);
|
||
|
|
char is_exist_mod(const char *mod);
|
||
|
|
int __snprintf(char **buf, const int bufLen, int *remainLen, const char *format, ...);
|
||
|
|
char is_digit_str(const char *s);
|
||
|
|
-int get_system_uuid(char *buffer, size_t size);
|
||
|
|
+int get_system_uuid(char *buffer, unsigned int size);
|
||
|
|
|
||
|
|
#endif
|
||
|
|
diff --git a/src/common/util.c b/src/common/util.c
|
||
|
|
index 945da65..b7a928f 100644
|
||
|
|
--- a/src/common/util.c
|
||
|
|
+++ b/src/common/util.c
|
||
|
|
@@ -196,7 +196,7 @@ char is_digit_str(const char *s)
|
||
|
|
return 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
-int get_system_uuid(char *buffer, size_t size)
|
||
|
|
+int get_system_uuid(char *buffer, unsigned int size)
|
||
|
|
{
|
||
|
|
FILE *fp = NULL;
|
||
|
|
|
||
|
|
--
|
||
|
|
2.33.0
|
||
|
|
|