aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/eopen.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/util/eopen.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/util/eopen.h b/src/util/eopen.h
index 42e8c5d..024381a 100644
--- a/src/util/eopen.h
+++ b/src/util/eopen.h
@@ -4,11 +4,4 @@
#define eopen(...) enopen(1, __VA_ARGS__)
#define enopen(...) xenopen(__VA_ARGS__, 0)
-static inline int
-xenopen(int status, const char *path, int flags, int mode, ...)
-{
- int fd = open(path, flags, mode);
- if (fd < 0)
- enprintf(status, "open %s:", path);
- return fd;
-}
+int xenopen(int status, const char *path, int flags, int mode, ...);