From 7eae65d9710329052ec505665bc6847d7e07de3b Mon Sep 17 00:00:00 2001 From: seanpringle Date: Fri, 7 Sep 2012 17:50:31 +1000 Subject: [PATCH] remove error.h dependency --- xoat.c | 2 +- xoat.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/xoat.c b/xoat.c index 91de85f..cbe452d 100644 --- a/xoat.c +++ b/xoat.c @@ -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); } diff --git a/xoat.h b/xoat.h index 7f08f9e..60956bf 100644 --- a/xoat.h +++ b/xoat.h @@ -38,7 +38,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #include #include -#include #include #include #include