From 2edcfad1bb9a32f31199d5842aa087b4d30ec6f5 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sun, 9 Jan 2022 20:03:44 +0000 Subject: [PATCH] libopkg: set 'const' attribute for argv Just not to make it messier than it already is. Signed-off-by: Daniel Golle --- libopkg/opkg_cmd.c | 2 +- libopkg/opkg_cmd.h | 2 +- 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 -- 2.30.2