aboutsummaryrefslogtreecommitdiff
path: root/include/opt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/opt.h')
-rw-r--r--include/opt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/opt.h b/include/opt.h
index e60328994d8c..41058cb4e29c 100644
--- a/include/opt.h
+++ b/include/opt.h
@@ -47,7 +47,7 @@
typedef struct BcOpt
{
/// The array of arguments.
- char** argv;
+ const char** argv;
/// The index of the current argument.
size_t optind;
@@ -59,7 +59,7 @@ typedef struct BcOpt
int subopt;
/// The option argument.
- char* optarg;
+ const char* optarg;
} BcOpt;
@@ -103,7 +103,7 @@ typedef struct BcOptLong
* @param argv The array of arguments.
*/
void
-bc_opt_init(BcOpt* o, char** argv);
+bc_opt_init(BcOpt* o, const char** argv);
/**
* Parse an option. This returns a value the same way getopt() and getopt_long()