return 0;
}
-static void halt_now(enum action a) {
+static _noreturn_ void halt_now(enum action a) {
/* Make sure C-A-D is handled by the kernel from this
* point on... */
#include "libudev.h"
#include "libudev-private.h"
+#include "macro.h"
#define BUFSIZE 16
#define UDEV_ALARM_TIMEOUT 180
return container_of(node, struct _mate, node);
}
-static void sig_alrm(int signo)
+_noreturn_ static void sig_alrm(int signo)
{
exit(4);
}
#include "keys-from-name.h"
#include "keys-to-name.h"
+#include "macro.h"
#include "util.h"
#define MAX_SCANCODES 1024
ioctl(fd, EVIOCGRAB, 0);
}
-static void help(int error)
+_noreturn_ static void help(int error)
{
const char* h = "Usage: keymap <event device> [<map file>]\n"
" keymap <event device> scancode keyname [...]\n"