[CRIU] [PATCH v2] crtools: replace option numbers by symbols
Kinsbursky Stanislav
skinsbursky at openvz.org
Thu Jul 26 07:09:30 EDT 2012
v2:
1) Number replaced by symbol also in long_opts array
Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
crtools.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/crtools.c b/crtools.c
index d59934f..e8c957c 100644
--- a/crtools.c
+++ b/crtools.c
@@ -79,9 +79,9 @@ int main(int argc, char *argv[])
{ "namespaces", required_argument, 0, 'n' },
{ "ext-unix-sk", no_argument, 0, 'x' },
{ "help", no_argument, 0, 'h' },
- { SK_EST_PARAM, no_argument, 0, 42 },
- { "close", required_argument, 0, 43 },
- { "log-pid", no_argument, 0, 44},
+ { SK_EST_PARAM, no_argument, 0, '*' },
+ { "close", required_argument, 0, '+' },
+ { "log-pid", no_argument, 0, ','},
{ "version", no_argument, 0, 'V'},
{ },
};
@@ -142,11 +142,11 @@ int main(int argc, char *argv[])
log_level++;
}
break;
- case 42:
+ case '*':
pr_info("Will dump TCP connections\n");
opts.tcp_established_ok = true;
break;
- case 43: {
+ case '+': {
int fd;
fd = atoi(optarg);
@@ -154,7 +154,7 @@ int main(int argc, char *argv[])
close(fd);
break;
}
- case 44:
+ case ',':
opts.log_file_per_pid = 1;
break;
case 'V':
More information about the CRIU
mailing list