summaryrefslogtreecommitdiff
path: root/system/kbd/error.h
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-25 21:48:06 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-25 21:48:06 -0500
commit70125815f737fda2d35d8741ea5e383d5e82d98f (patch)
treee5ada7436875662b4ec0e7575ecf45bffaf38b9a /system/kbd/error.h
parentbe0152152e29640f97ff2d3d6e5e5128c8293a7b (diff)
downloadpackages-70125815f737fda2d35d8741ea5e383d5e82d98f.tar.gz
packages-70125815f737fda2d35d8741ea5e383d5e82d98f.tar.bz2
packages-70125815f737fda2d35d8741ea5e383d5e82d98f.tar.xz
packages-70125815f737fda2d35d8741ea5e383d5e82d98f.zip
system/kbd: remove package
Diffstat (limited to 'system/kbd/error.h')
-rw-r--r--system/kbd/error.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/system/kbd/error.h b/system/kbd/error.h
deleted file mode 100644
index 5eb8ed511..000000000
--- a/system/kbd/error.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef ERROR_H
-#define ERROR_H
-
-#include <stdio.h>
-#include <stdarg.h>
-#include <err.h>
-
-static inline void error(int status, int errnum, const char *fmt, ...)
-{
- va_list ap;
- void (*errfunc[2])(int, const char *, va_list) = { &verr, &verrx };
- void (*warnfunc[2])(const char *, va_list) = { &vwarn, &vwarnx };
- fflush(stdout);
- va_start(ap, fmt);
- if (status != 0)
- errfunc[errnum==0](status, fmt, ap); /* does not return */
- warnfunc[errnum==0](fmt, ap);
- va_end(ap);
-}
-#endif