X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fcollect%2Fcollect.c;h=14184a5e058977361d9927afce60005e8517d806;hb=f46a8a98a79afcbb9e9910d7d71c1f8ef4e6637f;hp=9fb6737d9b4d6af94877d5b2efdb39c96ad7053e;hpb=322fc7a636296ba9a3f93912661f14c65c2af4b2;p=elogind.git diff --git a/extras/collect/collect.c b/extras/collect/collect.c index 9fb6737d9..14184a5e0 100644 --- a/extras/collect/collect.c +++ b/extras/collect/collect.c @@ -31,9 +31,9 @@ #include #include -#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 @@ -147,7 +147,7 @@ static int checkout(int fd) 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;