utils/installwatch: initial commit
[grimoire-witchcraft.git] / utils / installwatch / installwatch-glibc-bsd.diff
blob746a6f57f6b720fe0da244c393bec50aa5d60311
1 --- installwatch.c 2001-12-23 00:37:06.000000000 +0100
2 +++ installwatch.c.orig 2006-04-18 15:52:37.000000000 +0200
3 @@ -574,7 +574,7 @@
5 REFCOUNT;
6 va_start(ap, flags);
7 - mode = va_arg(ap, mode_t);
8 + mode = (mode_t) va_arg(ap, int);
9 va_end(ap);
10 canonicalize(pathname, canonic);
12 @@ -745,7 +745,7 @@
13 #endif
15 va_start(ap, flags);
16 - mode = va_arg(ap, mode_t);
17 + mode = (mode_t) va_arg(ap, int);
18 va_end(ap);
19 canonicalize(pathname, canonic);
20 if(flags & (O_WRONLY | O_RDWR))