Skip to content

Commit d624c38

Browse files
committed
lib: fix hashtable in makefile and reorder include
The file "hashtable-api.h" is implemented by "hashtable.c". In that case, the header should be included as first to help ensure that the ehader is self-contained (except the default header, which always comes first for internal sources).
1 parent 41bc3c0 commit d624c38

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ noinst_HEADERS = \
335335
include/nl-aux-xfrm/nl-xfrm.h \
336336
include/nl-default.h \
337337
include/nl-priv-dynamic-core/cache-api.h \
338-
lib/hashtable-api.h \
339338
include/nl-priv-dynamic-core/nl-core.h \
340339
include/nl-priv-dynamic-core/object-api.h \
341340
include/nl-priv-dynamic-route/nl-priv-dynamic-route.h \
@@ -442,6 +441,7 @@ lib_libnl_3_la_SOURCES = \
442441
lib/error.c \
443442
lib/handlers.c \
444443
lib/hash.c \
444+
lib/hashtable-api.h \
445445
lib/hashtable.c \
446446
lib/mpls.c \
447447
lib/mpls.h \

lib/hashtable.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
#include "nl-default.h"
77

8+
#include "hashtable-api.h"
9+
810
#include <netlink/object.h>
911
#include <netlink/hash.h>
1012
#include <netlink/hashtable.h>
1113

1214
#include "nl-aux-core/nl-core.h"
1315

14-
#include "hashtable-api.h"
15-
1616
/**
1717
* @ingroup core_types
1818
* @defgroup hashtable Hashtable

0 commit comments

Comments
 (0)