]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lib: `ctlname` in `lldpctl_conn_t` is not const
authorVincent Bernat <vincent.bernat@dailymotion.com>
Tue, 26 Feb 2013 13:28:57 +0000 (14:28 +0100)
committerVincent Bernat <vincent.bernat@dailymotion.com>
Tue, 26 Feb 2013 13:28:57 +0000 (14:28 +0100)
It is allocated on the heap by `strdup()`

src/lib/private.h

index 616a38d39d4c5746167386e798af705506ac0eb7..077f228c4d2ea51b67473b3f425d624ccb75696e 100644 (file)
@@ -23,7 +23,7 @@
 /* connection.c */
 struct lldpctl_conn_t {
        /* the Unix-domain socket to connect to lldpd */
-       const char *ctlname;
+       char *ctlname;
 
        /* Callback handling */
        lldpctl_recv_callback recv; /* Receive callback */