summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Seyfried <seife@suse.de>2009-01-08 13:30:29 +0100
committerLennart Poettering <lennart@poettering.net>2009-10-17 04:11:31 +0200
commitd6381960e981c5f56d4fb1b3360fac4ef808ddac (patch)
tree771647d713f3c39cc48b5de340bd2686ec729052
parentc8aefa70b6fe627bd004088ba99d66ba8dc2084c (diff)
libdaemon 0.13 compiler warning issue
see https://bugzilla.novell.com/show_bug.cgi?id=449728 The patch I packaged up for this is attached.
-rw-r--r--libdaemon/dpid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdaemon/dpid.c b/libdaemon/dpid.c
index 39814f1..3e719a7 100644
--- a/libdaemon/dpid.c
+++ b/libdaemon/dpid.c
@@ -236,7 +236,8 @@ int daemon_pid_file_create(void) {
snprintf(t, sizeof(t), "%lu\n", (unsigned long) getpid());
- if (write(fd, t, l = strlen(t)) != l) {
+ l = strlen(t);
+ if (write(fd, t, l) != l) {
int saved_errno = errno;
daemon_log(LOG_WARNING, "write(): %s", strerror(errno));
unlink(fn);