Displaying 2 results from an estimated 2 matches for "1773ece".
2019 Apr 23
0
[nbdkit PATCH 1/4] cleanup: Move cleanup.c to common
...tdio.h>
#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include "internal.h"
+#include "cleanup.h"
+#include "nbdkit-filter.h"
void
cleanup_free (void *ptr)
diff --git a/common/utils/Makefile.am b/common/utils/Makefile.am
index 1773ece..d40d6cf 100644
--- a/common/utils/Makefile.am
+++ b/common/utils/Makefile.am
@@ -34,7 +34,9 @@ include $(top_srcdir)/common-rules.mk
noinst_LTLIBRARIES = libutils.la
libutils_la_SOURCES = \
- utils.c \
+ cleanup.c \
+ cleanup.h \
+ utils.c \
utils.h
libutils_la_CPPFLAGS = \
-I$(top_...
2019 Apr 23
8
[nbdkit PATCH 0/4] Start using cleanup macros in filters/plugins
There's more that can be done (in particular, use of CLEANUP_FREE),
but this is enough to at least see if I'm on the right track.
I couldn't figure out an obvious difference between common/include and
common/utils, but it looks like the former is for things that are
inlineable via .h only, while the latter is when you need to link in
a convenience library, so this landed in the