summaryrefslogtreecommitdiff
path: root/legacy/eet/src/bin
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-08-18 12:21:55 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-08-18 12:21:55 +0000
commit7aa5c530d47b07428212e8cdacfd025251318767 (patch)
tree8f4297a62a6826c137c267b9c59b0a6295ab217b /legacy/eet/src/bin
parentda8c3be66f356d5fb29d2a59a226512e145c6328 (diff)
fail when not passed good args
SVN revision: 35538
Diffstat (limited to 'legacy/eet/src/bin')
-rw-r--r--legacy/eet/src/bin/eet_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/legacy/eet/src/bin/eet_main.c b/legacy/eet/src/bin/eet_main.c
index d352a0f643..9f18385fd2 100644
--- a/legacy/eet/src/bin/eet_main.c
+++ b/legacy/eet/src/bin/eet_main.c
@@ -216,7 +216,7 @@ main(int argc, char **argv)
216 " eet -r FILE.EET KEY remove KEY in FILE.EET\n" 216 " eet -r FILE.EET KEY remove KEY in FILE.EET\n"
217 ); 217 );
218 eet_shutdown(); 218 eet_shutdown();
219 return 0; 219 return -1;
220 } 220 }
221 if ((!strncmp(argv[1], "-h", 2))) 221 if ((!strncmp(argv[1], "-h", 2)))
222 { 222 {
@@ -246,6 +246,10 @@ main(int argc, char **argv)
246 { 246 {
247 do_eet_remove(argv[2], argv[3]); 247 do_eet_remove(argv[2], argv[3]);
248 } 248 }
249 else
250 {
251 return -1;
252 }
249 eet_shutdown(); 253 eet_shutdown();
250 return 0; 254 return 0;
251} 255}