aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satd.c')
-rw-r--r--src/satd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/satd.c b/src/satd.c
index 6845fff..69861e9 100644
--- a/src/satd.c
+++ b/src/satd.c
@@ -63,7 +63,7 @@ create_lock(void)
/* Store PID in the file. */
/* Yes it is coming similar to a PID file, but this works if the started with -f. */
- t (pwrite(fd, &pid, sizeof(pid), (off_t)0) < (size_t)sizeof(pid));
+ t (pwrite(fd, &pid, sizeof(pid), (off_t)0) < (ssize_t)sizeof(pid));
goto done;
fail: