X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9514ca81bd12a47df977822efc14ff285bd5bc10..f74f462c6a0bb4e203789da0a181e3fea9ac4a3b:/uip/annosbr.c diff --git a/uip/annosbr.c b/uip/annosbr.c index c2aa8652..2c1ce75a 100644 --- a/uip/annosbr.c +++ b/uip/annosbr.c @@ -8,6 +8,8 @@ #include #include #include +#include "../sbr/lock_file.h" +#include "../sbr/m_mktemp.h" #include #include @@ -400,7 +402,7 @@ annosbr (int fd, char *file, char *comp, char *text, int inplace, int datesw, in if ((tmpfd = open (tmpfil, O_RDONLY)) == NOTOK) adios (tmpfil, "unable to open for re-reading"); - lseek (fd, (off_t) 0, SEEK_SET); + lseek(fd, 0, SEEK_SET); /* * We're making the file shorter if we're deleting a header field