summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2022-01-09 20:03:44 +0000
committerDaniel Golle2022-01-09 20:06:26 +0000
commit2edcfad1bb9a32f31199d5842aa087b4d30ec6f5 (patch)
treeee98726fd3d9649323da99fa6f446b645d1b7907
parentdb7fb64d9ce196916f36c9b5316c99694d531d32 (diff)
downloadopkg-lede-2edcfad1bb9a32f31199d5842aa087b4d30ec6f5.tar.gz
libopkg: set 'const' attribute for argv
Just not to make it messier than it already is. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--libopkg/opkg_cmd.c2
-rw-r--r--libopkg/opkg_cmd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c
index b6c45f5..6547775 100644
--- a/libopkg/opkg_cmd.c
+++ b/libopkg/opkg_cmd.c
@@ -42,7 +42,7 @@
#include "xsystem.h"
int opkg_cli_argc = 0;
-char **opkg_cli_argv = NULL;
+const char **opkg_cli_argv = NULL;
static void print_pkg(pkg_t * pkg)
{
diff --git a/libopkg/opkg_cmd.h b/libopkg/opkg_cmd.h
index 8831bd3..c73ec82 100644
--- a/libopkg/opkg_cmd.h
+++ b/libopkg/opkg_cmd.h
@@ -33,5 +33,5 @@ int opkg_cmd_exec(opkg_cmd_t * cmd, int argc, const char **argv);
extern int opkg_state_changed;
extern int opkg_cli_argc;
-extern char **opkg_cli_argv;
+extern const char **opkg_cli_argv;
#endif