From 131c154940fa1e7af340de6758529c90cbf9413d Mon Sep 17 00:00:00 2001 From: helly Date: Mon, 17 Apr 2006 19:28:47 +0000 Subject: [PATCH] - Some compilers like *param better than param[] --- mbo_getopt.cc | 2 +- mbo_getopt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mbo_getopt.cc b/mbo_getopt.cc index 3c27bf1b..81557daa 100755 --- a/mbo_getopt.cc +++ b/mbo_getopt.cc @@ -46,7 +46,7 @@ static int mbo_opt_error(int, char * const *argv, int oint, int optchr, int err, return ('?'); } -int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct opts[], char **optarg, int *optind, int show_err) +int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct *opts, char **optarg, int *optind, int show_err) { static int optchr = 0; static int dash = 0; /* have already seen the - */ diff --git a/mbo_getopt.h b/mbo_getopt.h index 092c32d2..3b013cb2 100755 --- a/mbo_getopt.h +++ b/mbo_getopt.h @@ -26,7 +26,7 @@ struct mbo_opt_struct const char * opt_name; }; -int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct opts[], char **optarg, int *optind, int show_err); +int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct *opts, char **optarg, int *optind, int show_err); } // end namespace re2c -- 2.40.0