remove error.h dependency
This commit is contained in:
2
xoat.c
2
xoat.c
@@ -840,7 +840,7 @@ int main(int argc, char *argv[])
|
|||||||
Window cli = XCreateSimpleWindow(display, root, 0, 0, 1, 1, 0, None, None);
|
Window cli = XCreateSimpleWindow(display, root, 0, 0, 1, 1, 0, None, None);
|
||||||
if (!strcmp(argv[1], "restart")) msg = atoms[XOAT_RESTART];
|
if (!strcmp(argv[1], "restart")) msg = atoms[XOAT_RESTART];
|
||||||
else if (!strcmp(argv[1], "exit")) msg = atoms[XOAT_EXIT];
|
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);
|
window_send_clientmessage(root, cli, msg, 0, SubstructureNotifyMask | SubstructureRedirectMask);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|||||||
1
xoat.h
1
xoat.h
@@ -38,7 +38,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <error.h>
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user