remove error.h dependency

This commit is contained in:
seanpringle
2012-09-07 17:50:31 +10:00
parent 2455f692dc
commit 7eae65d971
2 changed files with 1 additions and 2 deletions

2
xoat.c
View File

@@ -840,7 +840,7 @@ int main(int argc, char *argv[])
Window cli = XCreateSimpleWindow(display, root, 0, 0, 1, 1, 0, None, None);
if (!strcmp(argv[1], "restart")) msg = atoms[XOAT_RESTART];
else if (!strcmp(argv[1], "exit")) msg = atoms[XOAT_EXIT];
else error(EXIT_FAILURE, 0, "huh? %s", argv[1]);
else errx(EXIT_FAILURE, "huh? %s", argv[1]);
window_send_clientmessage(root, cli, msg, 0, SubstructureNotifyMask | SubstructureRedirectMask);
exit(EXIT_SUCCESS);
}

1
xoat.h
View File

@@ -38,7 +38,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <stdarg.h>
#include <unistd.h>
#include <ctype.h>
#include <error.h>
#include <err.h>
#include <signal.h>
#include <sys/types.h>