From: Daniel Golle Date: Sun, 9 Jan 2022 20:03:44 +0000 (+0000) Subject: libopkg: set 'const' attribute for argv X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2edcfad1bb9a32f31199d5842aa087b4d30ec6f5;p=project%2Fopkg-lede.git libopkg: set 'const' attribute for argv Just not to make it messier than it already is. Signed-off-by: Daniel Golle --- 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