** complete copyright information.
*/
+#include <unistd.h>
#include <h/mh.h>
#include <fcntl.h>
#include <errno.h>
+#include <sys/stat.h>
/*
** Link message into a folder. Return the new number
from_dir, msgfile);
ext_hook("ref-hook", oldmsg, newmsg);
} else
- ext_hook("add-hook", newmsg, (char *)0);
+ ext_hook("add-hook", newmsg, NULL);
return msgnum;
} else {
linkerr = errno;
-#ifdef EISREMOTE
- if (linkerr == EISREMOTE)
- linkerr = EXDEV;
-#endif /* EISREMOTE */
-
/*
** Check if the file in our desired location is
** the same as the source file. If so, then just
msgfile);
ext_hook("ref-hook", oldmsg, newmsg);
} else
- ext_hook("add-hook", newmsg, (char *)0);
+ ext_hook("add-hook", newmsg, NULL);
return msgnum;
}