summaryrefslogtreecommitdiff
path: root/src/tc-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tc-misc.c')
-rw-r--r--src/tc-misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tc-misc.c b/src/tc-misc.c
index d422f21..1677807 100644
--- a/src/tc-misc.c
+++ b/src/tc-misc.c
@@ -8,7 +8,7 @@
#include <libHX/init.h>
#include <libHX/misc.h>
-static int runner(int argc, const char **argv)
+static int runner(int argc, char **argv)
{
unsigned int n;
struct stat sa, sb;
@@ -43,10 +43,10 @@ static int runner(int argc, const char **argv)
return EXIT_SUCCESS;
}
-int main(int argc, const char **argv)
+int main(int argc, char **argv)
{
int ret = runner(argc, argv);
- if (ret != EXIT_FAILURE)
+ if (ret == EXIT_FAILURE)
fprintf(stderr, "FAILED\n");
return ret;
}