From a4170bd5a193943ad71bcc35f9e35344dbfaba96 Mon Sep 17 00:00:00 2001 From: lhl <1281544429@qq.com> Date: 星期二, 05 十一月 2024 21:54:19 +0800 Subject: [PATCH] 修改common的设备管理结构体 --- Client/姜可庚/code/2024kunlun_project_permisson/PmsClientSocket.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" index 2795585..0a0e535 100644 --- "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" @@ -72,11 +72,12 @@ typedef struct UserAboutPmsResponse{ Head head; int success; // 1涓烘垚鍔� ,0涓哄け璐� - PmsRes pmsList[100]; + //PmsRes pmsList[100]; + char pmsList[0]; UserAboutPmsResponse(){ head.type=QUERY_PMS_RES; - memset(pmsList,0,sizeof(PmsRes)); - head.len = sizeof(UserAboutPmsResponse); +// memset(pmsList,0,sizeof(PmsRes)); +// head.len = sizeof(UserAboutPmsResponse); } } QueryPmsResponse; -- Gitblit v1.8.0