summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-14 21:17:35 -0400
committermidipix <writeonce@midipix.org>2018-07-14 21:22:43 -0400
commitfed26ac79355575c340ea35b36d937062aa7204d (patch)
tree9ac46f15a3eb3eed045a61d7c940af3145f2e5d5 /src/internal
parent81d6fb5d5e7b89ffbed5bfb6a81092859ffc1ec0 (diff)
downloadntux-fed26ac79355575c340ea35b36d937062aa7204d.tar.bz2
ntux-fed26ac79355575c340ea35b36d937062aa7204d.tar.xz
driver: argv usage and error output: use the signal-resilient ntux_dprintf().
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ntux_dprintf_impl.h4
-rw-r--r--src/internal/ntux_driver_impl.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/internal/ntux_dprintf_impl.h b/src/internal/ntux_dprintf_impl.h
index 4296bd0..2367ef1 100644
--- a/src/internal/ntux_dprintf_impl.h
+++ b/src/internal/ntux_dprintf_impl.h
@@ -1,6 +1,10 @@
#ifndef NTUX_DPRINTF_IMPL_H
#define NTUX_DPRINTF_IMPL_H
+#ifdef ARGV_DRIVER
+#define argv_dprintf ntux_dprintf
+#endif
+
int ntux_dprintf(int fd, const char * fmt, ...);
#endif
diff --git a/src/internal/ntux_driver_impl.h b/src/internal/ntux_driver_impl.h
index 21013a3..32e3d1f 100644
--- a/src/internal/ntux_driver_impl.h
+++ b/src/internal/ntux_driver_impl.h
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <ntux/ntux.h>
+#include "ntux_dprintf_impl.h"
#include "argv/argv.h"
#define NTUX_OPTV_ELEMENTS 64