summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Bur <cyrilbur@gmail.com>2018-02-09 15:38:29 +1100
committerAlistair Popple <alistair@popple.id.au>2018-02-12 14:50:47 +1100
commit7361b69d5c129091f52101bba182865462d56e47 (patch)
tree5942971aa20c661e3ac8aa3c7b3128ec2938e48c
parent139ba071c222a5b0c20075f7c2265029ddd59449 (diff)
downloadpdbg-7361b69d5c129091f52101bba182865462d56e47.tar.gz
pdbg-7361b69d5c129091f52101bba182865462d56e47.zip
main: Remove unused variable oidx
Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 9eab915..8570568 100644
--- a/src/main.c
+++ b/src/main.c
@@ -235,7 +235,7 @@ enum command parse_cmd(char *optarg)
static bool parse_options(int argc, char *argv[])
{
- int c, oidx = 0, cmd_arg_idx = 0;
+ int c, cmd_arg_idx = 0;
bool opt_error = true;
static int current_processor = INT_MAX, current_chip = INT_MAX, current_thread = INT_MAX;
struct option long_opts[] = {
@@ -251,7 +251,7 @@ static bool parse_options(int argc, char *argv[])
};
do {
- c = getopt_long(argc, argv, "-p:c:t:b:d:s:haV", long_opts, &oidx);
+ c = getopt_long(argc, argv, "-p:c:t:b:d:s:haV", long_opts, NULL);
switch(c) {
case 1:
/* Positional argument */
OpenPOWER on IntegriCloud