X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Flndir%2Flndir.c;h=bfce2b515e43a33872e52937eb3eef517f85a364;hb=5882c5ff503c5b3b425708621cbc3371cc36e5de;hp=6cc240a97834501b7f2f2bd76691528b5f7b8c9d;hpb=f74a6116eb089646eec41755eccbe0eb88a99ac0;p=ghc-hetmet.git diff --git a/utils/lndir/lndir.c b/utils/lndir/lndir.c index 6cc240a..bfce2b5 100644 --- a/utils/lndir/lndir.c +++ b/utils/lndir/lndir.c @@ -43,6 +43,8 @@ in this Software without prior written authorization from the X Consortium. % lndir ../X */ +#define NeedVarargsPrototypes 1 + #include "lndir-Xos.h" #include #include @@ -176,7 +178,7 @@ int copyfile(const char *oldpath, const char *newpath) { char buf[BUFSIZE]; #ifdef SYMLINKS - if (copy) { + if (copy == 0) { return symlink(oldpath, newpath); } else { #endif