]> git.proxmox.com Git - mirror_frr.git/blobdiff - babeld/neighbour.c
Merge pull request #3540 from donaldsharp/staic
[mirror_frr.git] / babeld / neighbour.c
index c1592fb18a11c6167f05631e1f34063e170dff64..83f05bb5cf337698dc0b8622ee7394d26c6ba45e 100644 (file)
@@ -20,6 +20,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
@@ -90,7 +94,7 @@ find_neighbour(const unsigned char *address, struct interface *ifp)
 
     neigh = malloc(sizeof(struct neighbour));
     if(neigh == NULL) {
-        flog_err(BABEL_ERR_MEMORY, "malloc(neighbour): %s",
+        flog_err(EC_BABEL_MEMORY, "malloc(neighbour): %s",
                  safe_strerror(errno));
         return NULL;
     }