[CRIU] [PATCH] remote: Remove unused constants

Radostin Stoyanov rstoyanov1 at gmail.com
Thu Jun 14 10:57:38 MSK 2018


Drop the constants for default cache host/port and page size because
they are not used anywhere.

Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
 criu/include/img-remote.h | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/criu/include/img-remote.h b/criu/include/img-remote.h
index c32e6ea5..15e1bc5d 100644
--- a/criu/include/img-remote.h
+++ b/criu/include/img-remote.h
@@ -16,14 +16,9 @@
 #define NULL_SNAPSHOT_ID "null"
 #define DEFAULT_CACHE_SOCKET "img-cache.sock"
 #define DEFAULT_PROXY_SOCKET "img-proxy.sock"
-#define DEFAULT_CACHE_PORT 9996
-#define DEFAULT_CACHE_HOST "localhost"
 
 #define DEFAULT_LISTEN 50
-#ifndef PAGESIZE
-#define PAGESIZE 4096
-#endif
-#define BUF_SIZE PAGESIZE
+#define BUF_SIZE 4096
 
 struct rbuf {
 	char buffer[BUF_SIZE];
-- 
2.17.1



More information about the CRIU mailing list