[Pdbg] [PATCH 01/29] main: Remove unused variable oidx
Cyril Bur
cyrilbur at gmail.com
Fri Feb 9 15:38:29 AEDT 2018
Signed-off-by: Cyril Bur <cyrilbur at gmail.com>
---
src/main.c | 4 ++--
1 file 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 */
--
2.16.1
More information about the Pdbg
mailing list