summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-14 19:56:45 -0400
committermidipix <writeonce@midipix.org>2018-07-14 20:07:40 -0400
commit4999503f7e76a4f49c287f62293321f265eb71fa (patch)
tree2eccb43c5032cc647e8abe8f967a0abdeafc93a8 /src/internal
parentf72a4025ada2230fea795b9e43c58490fb0fc6b3 (diff)
downloadapimagic-4999503f7e76a4f49c287f62293321f265eb71fa.tar.bz2
apimagic-4999503f7e76a4f49c287f62293321f265eb71fa.tar.xz
driver: argv usage and error output: use the signal-resilient amgc_dprintf().
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/apimagic_dprintf_impl.h4
-rw-r--r--src/internal/apimagic_driver_impl.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/internal/apimagic_dprintf_impl.h b/src/internal/apimagic_dprintf_impl.h
index becc889..76dccc8 100644
--- a/src/internal/apimagic_dprintf_impl.h
+++ b/src/internal/apimagic_dprintf_impl.h
@@ -1,6 +1,10 @@
#ifndef APIMAGIC_DPRINTF_IMPL_H
#define APIMAGIC_DPRINTF_IMPL_H
+#ifdef ARGV_DRIVER
+#define argv_dprintf amgc_dprintf
+#endif
+
int amgc_dprintf(int fd, const char * fmt, ...);
#endif
diff --git a/src/internal/apimagic_driver_impl.h b/src/internal/apimagic_driver_impl.h
index d2a6819..44268e0 100644
--- a/src/internal/apimagic_driver_impl.h
+++ b/src/internal/apimagic_driver_impl.h
@@ -6,6 +6,7 @@
#include <sys/types.h>
#include <apimagic/apimagic.h>
+#include "apimagic_dprintf_impl.h"
#include "argv/argv.h"
#ifndef AMGC_TAB_WIDTH