aboutsummaryrefslogtreecommitdiffstats
path: root/src/satq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satq.c')
-rw-r--r--src/satq.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/satq.c b/src/satq.c
index 6fafba4..f1c29b2 100644
--- a/src/satq.c
+++ b/src/satq.c
@@ -59,11 +59,8 @@ usage(void)
int
main(int argc, char *argv[])
{
- if (argc > 1) {
- usage();
- } else if (argc == 1) {
- argv0 = argv[0];
- }
+ if (argc > 0) argv0 = argv[0];
+ if (argc > 1) usage();
if (send_command(0, NULL))
return errno ? (perror(argv0), 1) : 3;