diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 00:59:19 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 00:59:19 +0100 |
commit | d679ea3129781ef564c1f91194104ce7692bb102 (patch) | |
tree | 966f69d63bd1c5b1229aa99ee4378e6e0f50e74d /src/satd-run.c | |
parent | reopen state file, we will use flock on it, so all processes need their own open file descriptor for it (diff) | |
download | sat-d679ea3129781ef564c1f91194104ce7692bb102.tar.gz sat-d679ea3129781ef564c1f91194104ce7692bb102.tar.bz2 sat-d679ea3129781ef564c1f91194104ce7692bb102.tar.xz |
fix errors
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/satd-run.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/satd-run.c b/src/satd-run.c index 0ade981..95551b0 100644 --- a/src/satd-run.c +++ b/src/satd-run.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])); @@ -74,5 +75,7 @@ fail: perror(argv[0]); rc = 1; goto done; + + (void) argc; } |