diff --git a/include/pinproc.h b/include/pinproc.h index 2f465c5..ccc2fe8 100644 --- a/include/pinproc.h +++ b/include/pinproc.h @@ -351,7 +351,7 @@ PINPROC_API void PRLogSetCallback(PRLogCallback callback); /**< Replaces the def PINPROC_API void PRLogSetLevel(PRLogLevel level); -PINPROC_API const char *PRGetLastErrorText(); +PINPROC_API const char *PRGetLastErrorText(void); /** * @defgroup device Device Creation & Deletion diff --git a/src/pinproc.cpp b/src/pinproc.cpp index c59313c..3d682ac 100644 --- a/src/pinproc.cpp +++ b/src/pinproc.cpp @@ -82,7 +82,7 @@ void PRSetLastErrorText(const char *format, ...) PRLog(kPRLogError, "%s\n", lastErrorText); } -const char *PRGetLastErrorText() +const char *PRGetLastErrorText(void) { return lastErrorText; }