summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-13 14:16:16 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-13 14:16:16 +0000
commit2d043de488ea65807b51b35a4436bbbf570ca29c (patch)
treef07129f223918ecfbc38ec331b99b551a12a6ce6 /src/inspircd.cpp
parentd1ddbd62f91d4b9453447b5d25f5e41e807b0010 (diff)
removes unnecessary checks in modules, removes a superfluous else statement, fixes some formatting. Patch by dKingston.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11867 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 4956cfa8c..b8b51d2cd 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -273,12 +273,10 @@ bool InspIRCd::DaemonSeed()
this->Logs->Log("STARTUP",DEFAULT,"Failed to getrlimit()!");
return false;
}
- else
- {
- rl.rlim_cur = rl.rlim_max;
- if (setrlimit(RLIMIT_CORE, &rl) == -1)
+ rl.rlim_cur = rl.rlim_max;
+
+ if (setrlimit(RLIMIT_CORE, &rl) == -1)
this->Logs->Log("STARTUP",DEFAULT,"setrlimit() failed, cannot increase coredump size.");
- }
return true;
#endif