[Devel] [PATCH 11/13][user-cr]: checkpoint: Rename struct args

Sukadev Bhattiprolu sukadev at linux.vnet.ibm.com
Wed Mar 3 23:50:01 PST 2010


From: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
Date: Wed, 3 Mar 2010 11:24:54 -0800
Subject: [PATCH 11/13][user-cr]: checkpoint: Rename struct args

Rename 'struct args' in checkpoint.c to 'struct app_checkpoint_args'.
This would give the struct a more specific name when checkpoint/restart
code is implemented as a library interface.

Signed-off-by: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
---
 checkpoint.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/checkpoint.c b/checkpoint.c
index ca77d8b..d5fcfee 100644
--- a/checkpoint.c
+++ b/checkpoint.c
@@ -39,7 +39,7 @@ static char usage_str[] =
 "  -v,--verbose          verbose output\n"
 "";
 
-struct args {
+struct app_checkpoint_args {
 	int outfd;
 	int logfd;
 	int container;
@@ -69,7 +69,7 @@ static int str2num(char *str)
 	return num;
 }
 
-static void parse_args(struct args *args, int argc, char *argv[])
+static void parse_args(struct app_checkpoint_args *args, int argc, char *argv[])
 {
 	static struct option opts[] = {
 		{ "help",	no_argument,		NULL, 'h' },
@@ -162,7 +162,7 @@ static void parse_args(struct args *args, int argc, char *argv[])
 
 int main(int argc, char *argv[])
 {
-	struct args args;
+	struct app_checkpoint_args args;
 	unsigned long flags = 0;
 	pid_t pid;
 	int ret;
-- 
1.6.0.4

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list