#include <sys/types.h>
#include <sys/stat.h>
-#include "../../list.h"
+#include "../../udev/list.h"
-#define TMPFILE "/dev/.udev/collect"
+#define TMPFILE UDEV_PREFIX "/dev/.udev/collect"
#define BUFSIZE 16
#define UDEV_ALARM_TIMEOUT 180
if (!ptr && word < (buf + len)) {
bufsize = bufsize << 1;
if (debug)
- fprintf(stderr, "ID overflow, restarting with size %d\n", bufsize);
+ fprintf(stderr, "ID overflow, restarting with size %zi\n", bufsize);
free(buf);
lseek(fd, 0, SEEK_SET);
goto restart;
int main(int argc, char **argv)
{
static const struct option options[] = {
- { "add", 0, NULL, 'a' },
- { "remove", 0, NULL, 'r' },
- { "debug", 0, NULL, 'd' },
- { "help", 0, NULL, 'h' },
+ { "add", no_argument, NULL, 'a' },
+ { "remove", no_argument, NULL, 'r' },
+ { "debug", no_argument, NULL, 'd' },
+ { "help", no_argument, NULL, 'h' },
{}
};
int argi;