diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 05:46:47 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 05:46:47 +0100 |
commit | a1b0c86af35ef878a104183c9bec2c6c79658703 (patch) | |
tree | e0c32851caf769c018c3d72cd94c23d0fe5f8dab /src/daemon.c | |
parent | run_job_or_hook is not static (diff) | |
download | sat-a1b0c86af35ef878a104183c9bec2c6c79658703.tar.gz sat-a1b0c86af35ef878a104183c9bec2c6c79658703.tar.bz2 sat-a1b0c86af35ef878a104183c9bec2c6c79658703.tar.xz |
impelement satd-add
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/daemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/daemon.c b/src/daemon.c index d262749..88e1b93 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -64,7 +64,7 @@ extern char **environ; * @param offset See pread(3). * @return See pread(3), only short if the file is shorter. */ -static ssize_t +ssize_t preadn(int fildes, void *buf, size_t nbyte, size_t offset) { PIO(pread); @@ -80,7 +80,7 @@ preadn(int fildes, void *buf, size_t nbyte, size_t offset) * @param offset See pwrite(3). * @return See pwrite(3). */ -static ssize_t +ssize_t pwriten(int fildes, void *buf, size_t nbyte, size_t offset) { PIO(pwrite); @@ -327,7 +327,7 @@ remove_job(const char *jobno, int runjob) { char *end; char *buf = NULL; - size_t no = 0, off = 0, n; + size_t no = 0, off = sizeof(size_t), n; ssize_t r; struct stat attr; struct job job; @@ -398,7 +398,7 @@ fail: struct job ** get_jobs(void) { - size_t off = 0, n, j = 0; + size_t off = sizeof(size_t), n, j = 0; struct stat attr; struct job **js = NULL; struct job job; |