X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f2753d64be0a74a22018e03ec9c04cc9ca45d3ab..d84c4b2234e172bb8b32769bf529f99e7670a96d:/uip/annosbr.c diff --git a/uip/annosbr.c b/uip/annosbr.c index 778e2ab2..2c1ce75a 100644 --- a/uip/annosbr.c +++ b/uip/annosbr.c @@ -8,6 +8,7 @@ #include #include #include +#include "../sbr/lock_file.h" #include "../sbr/m_mktemp.h" #include #include @@ -401,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