From d6381960e981c5f56d4fb1b3360fac4ef808ddac Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Thu, 8 Jan 2009 13:30:29 +0100 Subject: 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. --- libdaemon/dpid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit