aboutsummaryrefslogtreecommitdiffstats
path: root/src/satr.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/satr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/satr.c b/src/satr.c
index 739e432..d9594ee 100644
--- a/src/satr.c
+++ b/src/satr.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(1, NULL))
return errno ? (perror(argv0), 1) : 3;