[CRIU] [PATCH 1/8] parasite: Rename get_socket_name to gen_parasite_saddr

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 21 15:22:11 EST 2012


Socket address is being generated with this function,
name it so.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 parasite-syscall.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/parasite-syscall.c b/parasite-syscall.c
index 02a50fa..605299d 100644
--- a/parasite-syscall.c
+++ b/parasite-syscall.c
@@ -297,7 +297,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;
 
@@ -317,7 +317,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) {
@@ -380,7 +380,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));
-- 
1.7.7.6



More information about the CRIU mailing list