From 669c5f31f5050cd69a6b51d52cdcec65104d6362 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 6 Sep 2023 19:05:13 +0800 Subject: [PATCH] Remove duplicate const --- chsrc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/chsrc.c b/chsrc.c index 52f4870..c16ea16 100644 --- a/chsrc.c +++ b/chsrc.c @@ -1357,8 +1357,8 @@ target_info pl_dotnet_target = {pl_dotnet_setsrc, NULL, pl_dotnet_sources, pl_dotnet_sources_n}; -#define targetinfo(t) (const char const*)t -static const char const +#define targetinfo(t) (const char*)t +static const char *pl_ruby [] = {"gem", "ruby", "rb", "rubygems", NULL, targetinfo(&pl_ruby_target)}, *pl_python[] = {"pip", "python", "py", "pypi", NULL, targetinfo(&pl_python_target)}, *pl_nodejs[] = {"npm", "node", "js", "nodejs", NULL, targetinfo(&pl_nodejs_target)}, @@ -1392,7 +1392,7 @@ target_info os_manjaro_target = {os_manjaro_setsrc, NULL, NULL, 0}, os_openeuler_target = {os_openeuler_setsrc, NULL, os_openeuler_sources, 7}, os_openkylin_target = {os_openkylin_setsrc, NULL, os_openkylin_sources, 7}; -static const char const +static const char *os_ubuntu [] = {"ubuntu", NULL, targetinfo(&os_ubuntu_target)}, *os_deepin [] = {"deepin", NULL, targetinfo(&os_deepin_target)}, *os_debian [] = {"debian", NULL, targetinfo(&os_debian_target)}, @@ -1418,7 +1418,7 @@ target_info wr_tex_target = {NULL, NULL, NULL, 0}, wr_brew_target = {NULL, NULL, NULL, 0}; -static const char const +static const char *wr_anaconda[] = {"conda", "anaconda", NULL, targetinfo(&wr_anaconda_target)}, *wr_emacs [] = {"emacs", NULL, targetinfo(&wr_emacs_target)}, *wr_tex [] = {"latex", "ctan", "tex", NULL, targetinfo(&wr_tex_target) }, @@ -1431,7 +1431,7 @@ static const char const /************************************** End Target Matrix ****************************************/ -static const char const* +static const char* usage[] = { "维护: https://gitee.com/RubyMetric/chsrc\n", @@ -1477,11 +1477,11 @@ print_available_mirrors () void -print_supported_targets_ (const char const*** array, size_t size) +print_supported_targets_ (const char*** array, size_t size) { for (int i=0; i