alternatives: remove duplicate 'const' specifier
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 5891616c4411926b60a308bc86eae86b585a7f00..24efedfd36576588467407b13bced862a73ad992 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",