diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-13 18:22:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-13 18:22:19 +0000 |
commit | bfaf7e3b27981a5144faba6d17c6e29fac735dbb (patch) | |
tree | bdec845abe8e5fcf617657f1e2473aed1a8fdec6 /include/dynamic.h | |
parent | 0ec05c9bb346c1e20f9ab42d56eb17f03991b106 (diff) |
Commit patch from danieldg that makes a ton of stuff const-safe for latest warn-happy trigger-happy gcc4 (thanks)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8922 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/dynamic.h')
-rw-r--r-- | include/dynamic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dynamic.h b/include/dynamic.h index 4cf299c1f..727ed11e1 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -23,7 +23,7 @@ class CoreExport DLLManager /** The last error string, or NULL */ - char *err; + const char *err; public: /** This constructor loads the module using dlopen() @@ -44,7 +44,7 @@ class CoreExport DLLManager /** Get the last error from dlopen() or dlsym(). * @return The last error string, or NULL if no error has occured. */ - char* LastError() + const char* LastError() { return err; } |