alternatives: remove duplicate 'const' specifier master
authorYousong Zhou <zhouyousong@yunionyun.com>
Fri, 14 Jun 2019 01:28:54 +0000 (01:28 +0000)
committerYousong Zhou <zhouyousong@yunionyun.com>
Fri, 14 Jun 2019 01:30:02 +0000 (01:30 +0000)
To quash warnings from GCC 7.

/home/yunion/git-repo/openwrt/openwrt/build_dir/target-mips_24kc_musl/linux-malta_be/opkg-2019-06-14-21b7bd73/libopkg/pkg_alternatives.c:35:42: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
 static const struct alternative_provider const providers[] = {
  ^~~~~

Signed-off-by: Yousong Zhou <zhouyousong@yunionyun.com>
libopkg/pkg_alternatives.c

index 5891616..24efedf 100644 (file)
@@ -32,7 +32,7 @@ struct alternative_provider {
        char *altpath;
 };
 
-static const struct alternative_provider const providers[] = {
+static const struct alternative_provider providers[] = {
        {
                .name = "busybox",
                .altpath = "/bin/busybox",