summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-03-10 22:24:57 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2017-03-10 21:46:50 +0000
commitf72726c7d88b6640e6cebb974f907aa585aab074 (patch)
treebbf45d529937287cf649d9767a0f79c506b6342d
parente02e90020663b8629e7d3d0ef8801d3af4ee1dd4 (diff)
downloadostree-f72726c7d88b6640e6cebb974f907aa585aab074.tar.gz
Avoid unnecessary includes
"return" will do the same here. Also that style is used at the end of the function. Closes: #732 Approved by: jlebon
-rw-r--r--tests/test-rollsum-cli.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test-rollsum-cli.c b/tests/test-rollsum-cli.c
index 4f24477c..a00e4b73 100644
--- a/tests/test-rollsum-cli.c
+++ b/tests/test-rollsum-cli.c
@@ -21,8 +21,6 @@
#include "config.h"
#include "ostree-rollsum.h"
-#include <unistd.h>
-#include <stdlib.h>
int
main (int argc, char **argv)
@@ -39,7 +37,7 @@ main (int argc, char **argv)
g_setenv ("GIO_USE_VFS", "local", TRUE);
if (argc < 3)
- exit (EXIT_FAILURE);
+ return 1;
from_path = argv[1];
to_path = argv[2];