From b190a6af38f077b1754b4cb0cdd6c1f6e1494aba Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期五, 17 七月 2020 20:41:16 +0800
Subject: [PATCH] tmp

---
 test/communication.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/test/communication.c b/test/communication.c
index 1a82d84..eae99d4 100644
--- a/test/communication.c
+++ b/test/communication.c
@@ -1,4 +1,6 @@
-#include "socket.h"
+#include "shm_socket.h"
+#include "usg_common.h"
+#include "shm_mm.h"
 typedef struct Targ {
 	int port;
 	int id;
@@ -14,7 +16,7 @@
 		sprintf(sendbuf, "SERVER RECEIVED: %s", recvbuf);
 		puts(sendbuf);
 		shm_send(socket, sendbuf, strlen(sendbuf)+1);
-		shm_free(recvbuf);
+		free(recvbuf);
 	}
 	shm_close_socket(socket);
 }
@@ -46,7 +48,7 @@
 		shm_send(socket, sendbuf, strlen(sendbuf)+1) ;
 		shm_recv(socket, &recvbuf, &size);
 		printf("reply: %s\n", (char *)recvbuf);
-		shm_free(recvbuf);
+		free(recvbuf);
 
 	}
 	shm_close_socket(socket);
@@ -60,7 +62,7 @@
 	shm_send(socket, sendbuf, strlen(sendbuf)+1) ;
 	shm_recv(socket, &recvbuf, &size);
 	printf("reply: %s\n", (char *)recvbuf);
-	shm_free(recvbuf);
+	free(recvbuf);
 
 	
 }

--
Gitblit v1.8.0