summaryrefslogtreecommitdiff
path: root/src/internal/argv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-01-10 12:54:33 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:36 -0500
commit7d4640f3f18eef2bd1306fc8f5e39480f9086b51 (patch)
tree449b267666973e969c7b2f89ac5636857fca3c28 /src/internal/argv
parent92345cf034853e07a56c356484adbdf10503c27d (diff)
downloadperk-7d4640f3f18eef2bd1306fc8f5e39480f9086b51.tar.bz2
perk-7d4640f3f18eef2bd1306fc8f5e39480f9086b51.tar.xz
argv.h: main(): fix signatures.
Diffstat (limited to 'src/internal/argv')
-rw-r--r--src/internal/argv/argv.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index 507db54..6543439 100644
--- a/src/internal/argv/argv.h
+++ b/src/internal/argv/argv.h
@@ -109,12 +109,12 @@ struct argv_entry {
};
struct argv_meta {
- const char ** argv;
+ char ** argv;
struct argv_entry * entries;
};
struct argv_meta_impl {
- const char ** argv;
+ char ** argv;
char * strbuf;
struct argv_meta meta;
};
@@ -140,7 +140,7 @@ static void argv_usage(
const char * mode);
static struct argv_meta * argv_get(
- const char **,
+ char **,
const struct argv_option[],
int flags);
@@ -270,12 +270,12 @@ static inline const struct argv_option * option_from_tag(
}
static void argv_scan(
- const char ** argv,
+ char ** argv,
const struct argv_option options[],
struct argv_ctx * ctx,
struct argv_meta * meta)
{
- const char ** parg;
+ char ** parg;
const char * ch;
const char * val;
const struct argv_option * option;
@@ -566,7 +566,7 @@ static void argv_show_status(
struct argv_meta * meta)
{
int argc;
- const char ** argv;
+ char ** argv;
struct argv_entry * entry;
const struct argv_option * option;
char short_name[2] = {0};
@@ -615,10 +615,10 @@ static struct argv_meta * argv_free_impl(struct argv_meta_impl * imeta)
return 0;
}
-static struct argv_meta * argv_alloc(const char ** argv, struct argv_ctx * ctx)
+static struct argv_meta * argv_alloc(char ** argv, struct argv_ctx * ctx)
{
struct argv_meta_impl * imeta;
- const char ** vector;
+ char ** vector;
char * dst;
size_t size;
int argc;
@@ -657,7 +657,7 @@ static struct argv_meta * argv_alloc(const char ** argv, struct argv_ctx * ctx)
}
static struct argv_meta * argv_get(
- const char * argv[],
+ char * argv[],
const struct argv_option options[],
int flags)
{