summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_register.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/irm/irm_register.c')
-rw-r--r--src/tools/irm/irm_register.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/irm/irm_register.c b/src/tools/irm/irm_register.c
index f75220be..574c2224 100644
--- a/src/tools/irm/irm_register.c
+++ b/src/tools/irm/irm_register.c
@@ -59,15 +59,15 @@ static void usage(void)
int do_register(int argc, char ** argv)
{
char * name = NULL;
- char * difs[MAX_LAYERS];
- size_t difs_len = 0;
+ char * layers[MAX_LAYERS];
+ size_t layers_len = 0;
while (argc > 0) {
if (matches(*argv, "name") == 0) {
name = *(argv + 1);
} else if (matches(*argv, "layer") == 0) {
- difs[difs_len++] = *(argv + 1);
- if (difs_len > MAX_LAYERS) {
+ layers[layers_len++] = *(argv + 1);
+ if (layers_len > MAX_LAYERS) {
printf("Too many layers specified\n");
return -1;
}
@@ -81,10 +81,10 @@ int do_register(int argc, char ** argv)
argv += 2;
}
- if (difs_len < 1 || name == NULL) {
+ if (layers_len < 1 || name == NULL) {
usage();
return -1;
}
- return irm_reg(name, difs, difs_len);
+ return irm_reg(name, layers, layers_len);
}