]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: remove duplicate const declaration
authorVincent Bernat <bernat@luffy.cx>
Sun, 2 Mar 2014 23:45:17 +0000 (00:45 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 2 Mar 2014 23:45:17 +0000 (00:45 +0100)
clang complains about this. I don't remember why I did this.

src/daemon/interfaces-linux.c
src/log.c

index 931f7ddc22632fd2ca6aed48e5d32f1dc44aa57d..752897840d9b485140c21d9fc8fe0f7eafbc96c4 100644 (file)
@@ -272,8 +272,8 @@ iflinux_get_permanent_mac(struct lldpd *cfg,
        struct interfaces_device *master;
        int f, state = 0;
        FILE *netbond;
-       const char const *slaveif = "Slave Interface: ";
-       const char const *hwaddr = "Permanent HW addr: ";
+       const char *slaveif = "Slave Interface: ";
+       const char *hwaddr = "Permanent HW addr: ";
        u_int8_t mac[ETHER_ADDR_LEN];
        char path[SYSFS_PATH_MAX];
        char line[100];
index a3eebfa18bbf645a26e3b4b0faa90e6845561023..7bb128c43d1718e275bb1279bb0d0de398b1956d 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -38,7 +38,7 @@ static void    vlog(int, const char *, const char *, va_list);
 static void     logit(int, const char *, const char *, ...);
 
 #define MAX_DBG_TOKENS 40
-static const char const *tokens[MAX_DBG_TOKENS + 1] = {NULL};
+static const char *tokens[MAX_DBG_TOKENS + 1] = {NULL};
 
 void
 log_init(int n_debug, const char *progname)