]> diplodocus.org Git - nmh/blobdiff - uip/annosbr.c
Comment cleanup; removed ancient reference to 4.2BSD systems.
[nmh] / uip / annosbr.c
index 778e2ab2c9be8f55a7dd18a17d7385a70eb8d0bd..2c1ce75ada046361b4193535b50e061d0b221c5d 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <h/tws.h>
 #include <h/utils.h>
+#include "../sbr/lock_file.h"
 #include "../sbr/m_mktemp.h"
 #include <fcntl.h>
 #include <utime.h>
@@ -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