Skip to content

Commit

Permalink
hashtbl
Browse files Browse the repository at this point in the history
- Include hashtbl in a different way then copying
  • Loading branch information
jelu committed Jul 13, 2023
1 parent dfa6fb3 commit 7682d41
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion plugins/rssm/.gitignore

This file was deleted.

11 changes: 1 addition & 10 deletions plugins/rssm/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
CLEANFILES = $(srcdir)/hashtbl.c \
hashtbl.c *.gcda *.gcno *.gcov
CLEANFILES = *.gcda *.gcno *.gcov

AM_CFLAGS = -I$(srcdir) \
-I$(top_srcdir)/src \
Expand All @@ -10,8 +9,6 @@ AM_CFLAGS = -I$(srcdir) \

pkglib_LTLIBRARIES = rssm.la
rssm_la_SOURCES = rssm.c
nodist_rssm_la_SOURCES = hashtbl.c
BUILT_SOURCES = hashtbl.c
rssm_la_LDFLAGS = -module -avoid-version $(libldns_LIBS)
TESTS = test1.sh test2.sh test3.sh test4.sh test5.sh
EXTRA_DIST = $(TESTS) test1.gold test2.gold dnscap-rssm-rssac002.1.in \
Expand All @@ -29,12 +26,6 @@ gcov-local:
done
endif

hashtbl.c: $(top_srcdir)/src/hashtbl.c
cp $(top_srcdir)/src/hashtbl.c ./

$(srcdir)/hashtbl.c: $(top_srcdir)/src/hashtbl.c
cp $(top_srcdir)/src/hashtbl.c $(srcdir)/

dnscap-rssm-rssac002.1: dnscap-rssm-rssac002.1.in Makefile
sed -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
-e 's,[@]PACKAGE_URL[@],$(PACKAGE_URL),g' \
Expand Down
2 changes: 1 addition & 1 deletion plugins/rssm/rssm.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

#include "dnscap_common.h"

#include "hashtbl.h"
#include "hashtbl.c"

Check notice

Code scanning / CodeQL

Include header files only Note

The #include pre-processor directive should only be used to include header files.

static logerr_t* logerr;
static my_bpftimeval open_ts;
Expand Down

0 comments on commit 7682d41

Please sign in to comment.