X-Git-Url: http://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/36457566f9917dc7c0c348d012816a2ca333ef1b..54c260e6ecc81f1836bda844ec8e661d51bfb867:/nix/libstore/pathlocks.cc diff --git a/nix/libstore/pathlocks.cc b/nix/libstore/pathlocks.cc index b858ed238d..830858ff8d 100644 --- a/nix/libstore/pathlocks.cc +++ b/nix/libstore/pathlocks.cc @@ -33,7 +33,7 @@ void deleteLockFile(const Path & path, int fd) other processes waiting on this lock that the lock is stale (deleted). */ unlink(path.c_str()); - writeFull(fd, (const unsigned char *) "d", 1); + writeFull(fd, "d"); /* Note that the result of unlink() is ignored; removing the lock file is an optimisation, not a necessity. */ }