aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satd-rm.c')
-rw-r--r--src/satd-rm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/satd-rm.c b/src/satd-rm.c
index 4feb93a..3229b68 100644
--- a/src/satd-rm.c
+++ b/src/satd-rm.c
@@ -42,7 +42,8 @@ main(int argc, char *argv[])
char **arg;
int rc = 0;
- t (reopen(STATE_FILENO, O_RDRW));
+ assert(argc == 4);
+ t (reopen(STATE_FILENO, O_RDWR));
/* Receive and validate message. */
t (readall(SOCK_FILENO, &message, &n) || !n || message[n - 1]);
@@ -66,5 +67,7 @@ fail:
perror(argv[0]);
rc = 1;
goto done;
+
+ (void) argc;
}