[CRIU] [crtools-bot for Cyrill Gorcunov ] parasite: Rename get_socket_name to gen_parasite_saddr

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 22 07:59:28 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit c762d388bcf8ed6942dbf9e4328fd2c7e5fcb8d8
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Tue Feb 21 22:59:33 2012 +0400

    parasite: Rename get_socket_name to gen_parasite_saddr
    
    Socket address is being generated with this function,
    name it so.
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
 parasite-syscall.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/parasite-syscall.c b/parasite-syscall.c
index e397a5f..fc04645 100644
--- a/parasite-syscall.c
+++ b/parasite-syscall.c
@@ -318,7 +318,7 @@ static int munmap_seized(struct parasite_ctl *ctl, void *addr, size_t length)
 	return ret;
 }
 
-static int get_socket_name(struct sockaddr_un *saddr, pid_t pid)
+static int gen_parasite_saddr(struct sockaddr_un *saddr, pid_t pid)
 {
 	int sun_len;
 
@@ -338,7 +338,7 @@ static int parasite_send_fd(struct parasite_ctl *ctl, int fd)
 	int sun_len, ret = -1;
 	int sock;
 
-	sun_len = get_socket_name(&saddr, ctl->pid);
+	sun_len = gen_parasite_saddr(&saddr, ctl->pid);
 
 	sock = socket(PF_UNIX, SOCK_DGRAM, 0);
 	if (sock < 0) {
@@ -401,7 +401,7 @@ static int parasite_init(struct parasite_ctl *ctl, pid_t pid)
 {
 	struct parasite_init_args args = { };
 
-	args.sun_len = get_socket_name(&args.saddr, pid);
+	args.sun_len = gen_parasite_saddr(&args.saddr, pid);
 
 	return parasite_execute(PARASITE_CMD_INIT, ctl,
 				(parasite_status_t *)&args, sizeof(args));


More information about the CRIU mailing list