summaryrefslogtreecommitdiff
path: root/src/daemon.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2014-05-28 03:41:09 +0200
committerNils Maier <maierman@web.de>2014-05-29 19:38:34 +0200
commitb9fe4119c0f7165669e87cb1423efb030eb96c4d (patch)
treebe711120896da0db842537c0bf2a0b864c0182ec /src/daemon.cc
parentc8ccb434288dff750ff7a8d22d0551043b1eb1e5 (diff)
New round of clang-modernize
Diffstat (limited to 'src/daemon.cc')
-rw-r--r--src/daemon.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon.cc b/src/daemon.cc
index 7e991c98..154385c1 100644
--- a/src/daemon.cc
+++ b/src/daemon.cc
@@ -65,13 +65,13 @@ int daemon(int nochdir, int noclose)
}
}
if(noclose == 0) {
- if(freopen("/dev/null", "r", stdin) == 0) {
+ if(freopen("/dev/null", "r", stdin) == nullptr) {
return -1;
}
- if(freopen("/dev/null", "w", stdout) == 0) {
+ if(freopen("/dev/null", "w", stdout) == nullptr) {
return -1;
}
- if(freopen("/dev/null", "w", stderr) == 0) {
+ if(freopen("/dev/null", "w", stderr) == nullptr) {
return -1;
}
}