From deb6822302cb9009adc3450dd405817cc0dae9cd Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:43:56 +0000 Subject: Cast rework: use C++ style static_cast<> instead of C-style casts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11595 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dynamic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dynamic.cpp') diff --git a/src/dynamic.cpp b/src/dynamic.cpp index 511651941..704c4d9dd 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -32,7 +32,7 @@ DLLManager::DLLManager(InspIRCd*, const char *fname) h = dlopen(fname, RTLD_NOW|RTLD_LOCAL); if (!h) { - err = (char*)dlerror(); + err = dlerror(); return; } } @@ -57,7 +57,7 @@ bool DLLManager::GetSymbol(void** v, const char* sym_name) { dlerror(); // clear value *v = dlsym(h, sym_name); - err = (char*)dlerror(); + err = dlerror(); if (!*v || err) return false; } -- cgit v1.2.3