From 9c29f2f5095a0b2e5d488c47031437a956ec2102 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 14 Apr 2010 18:53:04 +0000 Subject: [PATCH] pre-release --- daemons/clvmd/clvmd.c | 2 +- daemons/dmeventd/dmeventd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index 7f402bb38..93f370380 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -366,7 +366,7 @@ int main(int argc, char *argv[]) * Daemon currently needs to use mlockall(). */ if (setenv("LANG", "C", 1) != 0) - perror("Can not set LANG to C"); + perror("Cannot set LANG to C"); /* Fork into the background (unless requested not to) */ if (debug != DEBUG_STDERR) { diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c index 71963d56f..d8e90bf25 100644 --- a/daemons/dmeventd/dmeventd.c +++ b/daemons/dmeventd/dmeventd.c @@ -1703,8 +1703,8 @@ int main(int argc, char *argv[]) * used by some glibc (on some distributions it takes over 100MB). * Daemon currently needs to use mlockall(). */ - if (setenv("LANG", "C", 1) != 0) - perror("Can not set LANG to C"); + if (!setenv("LANG", "C", 1)) + perror("Cannot set LANG to C"); if (!_debug) _daemonize(); -- 2.43.5