X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/13ae9ba066e6b8c114daa6714895a56816465f49..a75b45f604c4e48b0f39be25ce59cd1955e5f9a4:/uip/annosbr.c diff --git a/uip/annosbr.c b/uip/annosbr.c index 5b9fff42..ae9df280 100644 --- a/uip/annosbr.c +++ b/uip/annosbr.c @@ -11,7 +11,6 @@ #include #include #include -#include #include @@ -35,7 +34,7 @@ annotate (char *file, char *comp, char *text, int inplace, int datesw, int delet struct stat s; /* open and lock the file to be annotated */ - if ((fd = lkopen (file, O_RDWR, 0)) == NOTOK) { + if ((fd = lkopendata (file, O_RDWR, 0)) == NOTOK) { switch (errno) { case ENOENT: break; @@ -60,7 +59,7 @@ annotate (char *file, char *comp, char *text, int inplace, int datesw, int delet if (preserve_actime_and_modtime && utime(file, &b) == -1) advise("can't set access and modification times for %s", file); - lkclose (fd, file); + lkclosedata (fd, file); return i; }