aboutsummaryrefslogtreecommitdiff
path: root/src/sg-cl.opt
diff options
context:
space:
mode:
Diffstat (limited to 'src/sg-cl.opt')
-rw-r--r--src/sg-cl.opt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sg-cl.opt b/src/sg-cl.opt
index aa44095..433d705 100644
--- a/src/sg-cl.opt
+++ b/src/sg-cl.opt
@@ -49,7 +49,7 @@ OPTION(group-id,g,[<ID>],
[<source group ID>])
BEGIN
struct group_arg *g = grecs_malloc(sizeof(*g));
- translate_ids(1, &optarg, rt[GROUP_ID].map);
+ translate_ids(1, &optarg, groupkw[GROUP_ID].map);
g->type = GROUP_ID;
g->str = optarg;
g->usr = user;
@@ -62,7 +62,7 @@ OPTION(group-name,G,[<NAME>],
[<source group name>])
BEGIN
struct group_arg *g = grecs_malloc(sizeof(*g));
- translate_ids(1, &optarg, rt[GROUP_NAME].map);
+ translate_ids(1, &optarg, groupkw[GROUP_NAME].map);
g->type = GROUP_NAME;
g->str = optarg;
g->usr = user;
@@ -131,17 +131,17 @@ ECLAT_CL_PARSER(parse_options, [<int argc, char *argv[]>],[<
die(EX_USAGE, "bad number of arguments");
} else if (argc != 1)
die(EX_USAGE, "bad number of arguments");
- translate_ids(argc, argv, rt[dest_n].map);
+ translate_ids(argc, argv, groupkw[dest_n].map);
eclat_query_add_param(env->query, "Action", command);
if (list_option)
- describe_query_create(env, argc, argv, rt[dest_n].resid);
+ describe_query_create(env, argc, argv, groupkw[dest_n].resid);
else {
if (group_list || source_list || from_port || to_port || proto)
flush_rule();
if (rule_n == 1)
die(EX_USAGE, "no rules");
- eclat_query_add_param(query, rt[dest_n].resid, argv[0]);
+ eclat_query_add_param(query, groupkw[dest_n].resid, argv[0]);
}
}>])

Return to:

Send suggestions and report system problems to the System administrator.