commit a38b81c2820771e315b576e146dd9efc56de0d43
parent 5287873ab77be5dab0eef1b10cc2d43cba1fa0e2
Author: parazyd <parazyd@dyne.org>
Date: Sun, 8 Oct 2017 21:53:27 +0200
remove zuper; avoid warn in dotlock.c
Diffstat:
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/.gitmodules b/.gitmodules
@@ -1,3 +0,0 @@
-[submodule "zuper"]
- path = zuper
- url = https://github.com/dyne/zuper
diff --git a/dotlock.c b/dotlock.c
@@ -597,7 +597,6 @@ dotlock_lock (const char *realpath)
int hard_count = 0;
struct stat sb;
time_t t;
- int i;
snprintf (nfslockfile, sizeof (nfslockfile), "%s.%s.%d",
realpath, Hostname, (int) getpid ());
@@ -632,7 +631,7 @@ dotlock_lock (const char *realpath)
{
BEGIN_PRIVILEGED ();
- i = link (nfslockfile, lockfile);
+ link (nfslockfile, lockfile);
END_PRIVILEGED ();
if (stat (nfslockfile, &sb) != 0)