commit 372d230c79bf20d6c41e25c8bc5ceda80db7719f
parent cb0b511fa7d86bc8f44b2d22cbac5e4fae1ffb4b
Author: parazyd <parazyd@dyne.org>
Date:   Sun,  8 Oct 2017 18:30:09 +0200
avoid warning on compilation
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/dotlock.c b/src/dotlock.c
@@ -316,7 +316,6 @@ dotlock_lock (const char *realpath)
   int fd;
   int hard_count = 0;
   struct stat sb;
-  int i;
 
   snprintf (nfslockfile, sizeof (nfslockfile), "%s.%s.%d",
   realpath, Hostname, (int) getpid ());
@@ -337,7 +336,7 @@ dotlock_lock (const char *realpath)
   while (hard_count++ < HARDMAXATTEMPTS)
   {
 
-    i = link (nfslockfile, lockfile);
+    link (nfslockfile, lockfile);
 
     if (stat (nfslockfile, &sb) != 0)
     {