cgi-io: fix stray semicolon
authorJo-Philipp Wich <jo@mein.io>
Fri, 18 Aug 2017 12:28:33 +0000 (14:28 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 18 Aug 2017 12:28:33 +0000 (14:28 +0200)
Remove an improperly placed semicolon in order to solve the following
compiler error:

.../main.c:144:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (execl("/bin/busybox", "/bin/busybox", "md5sum", file, NULL));
    ^~
    .../main.c:145:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    return NULL;
    ^~~~~~
    cc1: all warnings being treated as errors

Fixes #4723.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Makefile
src/main.c

index 34c5359dd7bf03ec017cfcec8fab1e2ef35e1738..b8dd6f0713864b71e9769584deda91905b75830f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cgi-io
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_LICENSE:=GPL-2.0+
 
index 019bdf16016eda6c42d7505da8322294dd9ac45c..7760edaf4f853c31327b3b9518ac87e9db35ac93 100644 (file)
@@ -141,7 +141,7 @@ md5sum(const char *file)
                close(fds[0]);
                close(fds[1]);
 
-               if (execl("/bin/busybox", "/bin/busybox", "md5sum", file, NULL));
+               if (execl("/bin/busybox", "/bin/busybox", "md5sum", file, NULL))
                        return NULL;
 
                break;