diff options
author | midipix <writeonce@midipix.org> | 2018-07-14 22:38:19 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-07-14 22:40:52 -0400 |
commit | e9413de20a732201856e65954aaea3c5b2323be1 (patch) | |
tree | 737d6e8b340a3ae4e74b2251459936dcc279ad0d | |
parent | 7c1290914960e89e2aba185e098eb36cc0d3ea42 (diff) | |
download | sofort-e9413de20a732201856e65954aaea3c5b2323be1.tar.bz2 sofort-e9413de20a732201856e65954aaea3c5b2323be1.tar.xz |
driver: argv usage and error output: use the signal-resilient sfrt_dprintf().
-rw-r--r-- | src/internal/sofort_dprintf_impl.h | 4 | ||||
-rw-r--r-- | src/internal/sofort_driver_impl.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/internal/sofort_dprintf_impl.h b/src/internal/sofort_dprintf_impl.h index bfcc4ca..1508ffc 100644 --- a/src/internal/sofort_dprintf_impl.h +++ b/src/internal/sofort_dprintf_impl.h @@ -1,6 +1,10 @@ #ifndef SOFORT_DPRINTF_IMPL_H #define SOFORT_DPRINTF_IMPL_H +#ifdef ARGV_DRIVER +#define argv_dprintf sfrt_dprintf +#endif + int sfrt_dprintf(int fd, const char * fmt, ...); #endif diff --git a/src/internal/sofort_driver_impl.h b/src/internal/sofort_driver_impl.h index a9788f4..640aa2d 100644 --- a/src/internal/sofort_driver_impl.h +++ b/src/internal/sofort_driver_impl.h @@ -6,6 +6,7 @@ #include <sys/types.h> #include <sofort/sofort.h> +#include "sofort_dprintf_impl.h" #include "argv/argv.h" #define SFRT_OPTV_ELEMENTS 64 |