From d679ea3129781ef564c1f91194104ce7692bb102 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 29 Dec 2015 00:59:19 +0100 Subject: fix errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satd-rm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/satd-rm.c') 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; } -- cgit v1.2.3-70-g09d2