]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lib: map_reverse_lookup needs to be always available
authorVincent Bernat <vincent@bernat.im>
Sun, 23 Aug 2015 15:08:23 +0000 (17:08 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 23 Aug 2015 15:08:23 +0000 (17:08 +0200)
src/lib/helpers.c
src/lib/helpers.h

index 5b87e5095a9c6634eb6db2c2f135d1c976bd5b9a..f7ea51d0b479a9c047f9235da834a902e2e81c64 100644 (file)
@@ -40,7 +40,6 @@ map_lookup(lldpctl_map_t *list, int n)
        return "unknown";
 }
 
-#if defined ENABLE_LLDPMED || defined ENABLE_DOT3
 int
 map_reverse_lookup(lldpctl_map_t *list, const char *string)
 {
@@ -53,7 +52,6 @@ map_reverse_lookup(lldpctl_map_t *list, const char *string)
 
        return -1;
 }
-#endif
 
 int
 _lldpctl_atom_new_any_list(lldpctl_atom_t *atom, va_list ap)
index 172d7bd24f0d394d31d794c3224d74f06f2aa92b..d1b9415a74d6c0e7924bc4d56cd454f5c9713a4c 100644 (file)
@@ -16,9 +16,7 @@
  */
 
 const char *map_lookup(lldpctl_map_t *list, int n);
-#if defined ENABLE_LLDPMED || defined ENABLE_DOT3
 int map_reverse_lookup(lldpctl_map_t *list, const char *string);
-#endif
 
 int _lldpctl_atom_new_any_list(lldpctl_atom_t *atom, va_list ap);
 void _lldpctl_atom_free_any_list(lldpctl_atom_t *atom);