]> git.proxmox.com Git - mirror_frr.git/blobdiff - babeld/source.c
zebra: Refactor kernel_rtm to be a bit smarter about how it handles options
[mirror_frr.git] / babeld / source.c
index d6dd848952cb404f13c43cf2502fe49b643c9c96..ed165b41b44d8956a8c1ca69efba9b0a810d7de8 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 <stdio.h>
 #include <string.h>
@@ -59,7 +63,7 @@ find_source(const unsigned char *id, const unsigned char *p, unsigned char plen,
 
     src = malloc(sizeof(struct source));
     if(src == NULL) {
-        flog_err(BABEL_ERR_MEMORY, "malloc(source): %s", safe_strerror(errno));
+        flog_err(EC_BABEL_MEMORY, "malloc(source): %s", safe_strerror(errno));
         return NULL;
     }