[Spice-devel] [PATCH spice-server] Remove common/mem.h includes
Frediano Ziglio
fziglio at redhat.com
Mon Nov 20 16:14:01 UTC 2017
common/mem.h contains mainly memory allocation functions.
As we decided to move to Glib calls directly avoid to include
function declaration we should not use anymore.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/dispatcher.c | 1 -
server/red-channel-capabilities.c | 1 -
server/red-common.h | 1 -
server/red-stream.h | 1 -
server/tests/basic-event-loop.c | 1 -
5 files changed, 5 deletions(-)
diff --git a/server/dispatcher.c b/server/dispatcher.c
index 7e991403..301feffd 100644
--- a/server/dispatcher.c
+++ b/server/dispatcher.c
@@ -26,7 +26,6 @@
#include <fcntl.h>
#include <poll.h>
-#include <common/mem.h>
#include <common/spice_common.h>
#include "dispatcher.h"
diff --git a/server/red-channel-capabilities.c b/server/red-channel-capabilities.c
index 2113c6e9..5b766768 100644
--- a/server/red-channel-capabilities.c
+++ b/server/red-channel-capabilities.c
@@ -19,7 +19,6 @@
#endif
#include <string.h>
-#include <common/mem.h>
#include <common/macros.h>
#include "red-channel-capabilities.h"
diff --git a/server/red-common.h b/server/red-common.h
index b9ab4aa5..171a1877 100644
--- a/server/red-common.h
+++ b/server/red-common.h
@@ -28,7 +28,6 @@
#include <common/log.h>
#include <common/lz_common.h>
#include <common/marshaller.h>
-#include <common/mem.h>
#include <common/messages.h>
#include <common/ring.h>
#include <common/spice_common.h>
diff --git a/server/red-stream.h b/server/red-stream.h
index a71450c4..a8d855c2 100644
--- a/server/red-stream.h
+++ b/server/red-stream.h
@@ -19,7 +19,6 @@
#define RED_STREAM_H_
#include <openssl/ssl.h>
-#include <common/mem.h>
#include "spice.h"
#include "red-common.h"
diff --git a/server/tests/basic-event-loop.c b/server/tests/basic-event-loop.c
index 46cf3877..6fd8a293 100644
--- a/server/tests/basic-event-loop.c
+++ b/server/tests/basic-event-loop.c
@@ -25,7 +25,6 @@
#include "red-common.h"
#include "spice/macros.h"
#include <common/ring.h>
-#include <common/mem.h>
#include "basic-event-loop.h"
int debug = 0;
--
2.14.3
More information about the Spice-devel
mailing list