[8/9] sk: Move protobuf.h from socket .h-s to sk-inet.c

Submitted by Pavel Emelianov on Oct. 21, 2016, 12:51 p.m.

Details

Message ID 580A0F64.3030008@virtuozzo.com
State Superseded
Series "headers: Sanitize headers"
Headers show

Commit Message

Pavel Emelianov Oct. 21, 2016, 12:51 p.m.
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 criu/include/sk-inet.h | 1 -
 criu/include/sockets.h | 1 -
 criu/sk-inet.c         | 1 +
 3 files changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/include/sk-inet.h b/criu/include/sk-inet.h
index 326d1b9..a06a8ac 100644
--- a/criu/include/sk-inet.h
+++ b/criu/include/sk-inet.h
@@ -6,7 +6,6 @@ 
 #include "sockets.h"
 #include "files.h"
 #include "common/list.h"
-#include "protobuf.h"
 #include "images/sk-inet.pb-c.h"
 
 #define INET_ADDR_LEN		48 /* max of INET_ADDRSTRLEN and INET6_ADDRSTRLEN */
diff --git a/criu/include/sockets.h b/criu/include/sockets.h
index 212d24b..0de527c 100644
--- a/criu/include/sockets.h
+++ b/criu/include/sockets.h
@@ -4,7 +4,6 @@ 
 #include <stdbool.h>
 #include <sys/socket.h>
 
-#include "protobuf.h"
 #include "images/sk-opts.pb-c.h"
 
 struct fdinfo_list_entry;
diff --git a/criu/sk-inet.c b/criu/sk-inet.c
index 22ac3a8..924cf8c 100644
--- a/criu/sk-inet.c
+++ b/criu/sk-inet.c
@@ -21,6 +21,7 @@ 
 #include "rst-malloc.h"
 #include "sockets.h"
 #include "sk-inet.h"
+#include "protobuf.h"
 #include "util.h"
 
 #define PB_ALEN_INET	1