]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
daemon/priv: no need to define IFALIASZ
authorVincent Bernat <vincent@bernat.ch>
Sat, 2 Dec 2023 21:01:28 +0000 (22:01 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sat, 2 Dec 2023 21:01:28 +0000 (22:01 +0100)
It is part of the shipped kernel header. This is a bit odd we did define
it...

src/daemon/priv-linux.c

index cf2a320805f6c5f93273e157b26d837386c2df7d..9a6f90a4d5d73aef67f174f4583fc4892f96007c 100644 (file)
@@ -254,9 +254,6 @@ asroot_iface_description_os(const char *name, const char *description)
        /* We could use netlink but this is a lot to do in a privileged
         * process. Just write to /sys/class/net/XXXX/ifalias. */
        char *file;
-#ifndef IFALIASZ
-#  define IFALIASZ 256
-#endif
        char descr[IFALIASZ];
        FILE *fp;
        int rc;