Nuke some whitespace - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit a54afccf81b4152c8767ea4eaee2f93e39ac9eba DIR parent 8faf31baa2005f46bc2e6ad13edb1261717244a7 HTML Author: sin <sin@2f30.org> Date: Thu, 9 May 2019 13:45:14 +0100 Nuke some whitespace Diffstat: M lock.c | 2 -- 1 file changed, 0 insertions(+), 2 deletions(-) --- DIR diff --git a/lock.c b/lock.c @@ -17,7 +17,6 @@ lockrepo(char *repo) fd = open(path, O_RDWR | O_CREAT, 0600); if (fd < 0) return -1; - fl.l_type = F_WRLCK; fl.l_whence = SEEK_SET; fl.l_start = 0; @@ -40,7 +39,6 @@ unlockrepo(int fd) fl.l_len = 0; if (fcntl(fd, F_SETLK, &fl) < 0) return -1; - if (close(fd) < 0) return -1; return 0;