[CRIU] [crtools-bot for Kinsbursky Stanislav ] IPC: use constant pointers where possible

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 8 07:52:48 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 3665a8972bcf6f0951d61b4141f6a59dc1aaac51
Author: Kinsbursky Stanislav <skinsbursky at openvz.org>
Date:   Wed Feb 8 14:47:18 2012 +0300

    IPC: use constant pointers where possible
    
    Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 ipc_ns.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ipc_ns.c b/ipc_ns.c
index cc34a6a..de51715 100644
--- a/ipc_ns.c
+++ b/ipc_ns.c
@@ -108,7 +108,7 @@ static int dump_ipc_var(int fd)
 	return 0;
 }
 
-static int dump_ipc_data(struct cr_fdset *fdset)
+static int dump_ipc_data(const struct cr_fdset *fdset)
 {
 	int ret;
 
@@ -127,7 +127,7 @@ static int dump_ipc_data(struct cr_fdset *fdset)
 	return 0;
 }
 
-int dump_ipc_ns(int ns_pid, struct cr_fdset *fdset)
+int dump_ipc_ns(int ns_pid, const struct cr_fdset *fdset)
 {
 	int fd, ret;
 


More information about the CRIU mailing list