From cc43733f3138f08ecf7459074a9ea32b662b4c59 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 25 Jun 2013 14:50:15 +0200 Subject: missing variable + make some variables static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/argparser.c b/src/argparser.c index 8472505..a2d51a5 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -79,7 +79,7 @@ typedef struct /** * Whether the Linux VT is being used */ -long args_linuxvt; +static long args_linuxvt; /** * The name of the executed command @@ -89,7 +89,7 @@ char* args_program; /** * Whether to free the member of `args_program` */ -long args_program_dispose; +static long args_program_dispose; /** * Short, single-line, description of the program @@ -144,22 +144,27 @@ long args_files_count; /** * Queue of objects that needs to be freed on dispose */ -void** args_freequeue; +static void** args_freequeue; + +/** + * The number of elements in `args_freequeue` + */ +static long args_freeptr; /** * Options, in order */ -args_Option* args_options; +static args_Option* args_options; /** * Number of elements in `args_options` */ -long args_options_count; +static long args_options_count; /** * Number of elements for which `args_options` is allocated */ -long args_options_size; +static long args_options_size; // Option map // HashMap optmap = new HashMap(); -- cgit v1.2.3-70-g09d2