[hackers] [quark] the result of encode() and decode() is unused || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Wed, 28 Jun 2017 20:20:24 +0200 (CEST)

commit a092d9aa4bf39a7ce0c7aebb33493c7e35e539e4
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Wed Jun 28 19:07:57 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Wed Jun 28 20:20:10 2017 +0200

    the result of encode() and decode() is unused

diff --git a/quark.c b/quark.c
index 9e9c151..d05385c 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -104,7 +104,7 @@ timestamp(time_t t, char buf[TIMESTAMP_LEN])
         return buf;
 }
 
-static size_t
+static void
 decode(char src[PATH_MAX], char dest[PATH_MAX])
 {
         size_t i;
_AT_@ -122,11 +122,9 @@ decode(char src[PATH_MAX], char dest[PATH_MAX])
                 }
         }
         dest[i] = '\0';
-
- return i;
 }
 
-static size_t
+static void
 encode(char src[PATH_MAX], char dest[PATH_MAX])
 {
         size_t i;
_AT_@ -141,8 +139,6 @@ encode(char src[PATH_MAX], char dest[PATH_MAX])
                         i++;
                 }
         }
-
- return 0;
 }
 
 static enum status
Received on Wed Jun 28 2017 - 20:20:24 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 28 2017 - 20:24:34 CEST