diff --git a/host/include/interface/platform.h b/host/include/interface/platform.h index 23fe215f..568bc619 100644 --- a/host/include/interface/platform.h +++ b/host/include/interface/platform.h @@ -35,17 +35,17 @@ #define LG_HOST_EXIT_FATAL 0x50 int app_main(int argc, char * argv[]); -bool app_init(); -void app_shutdown(); -void app_quit(); +bool app_init(void); +void app_shutdown(void); +void app_quit(void); // these must be implemented for each OS -const char * os_getExecutable(); -const char * os_getDataPath(); +const char * os_getExecutable(void); +const char * os_getDataPath(void); void os_showMessage(const char * caption, const char * msg); bool os_getAndClearPendingActivationRequest(void); -bool os_blockScreensaver(); +bool os_blockScreensaver(void); bool os_hasSetCursorPos(void); void os_setCursorPos(int x, int y); diff --git a/host/platform/Linux/src/platform.c b/host/platform/Linux/src/platform.c index 83fb4f89..ee4d03d3 100644 --- a/host/platform/Linux/src/platform.c +++ b/host/platform/Linux/src/platform.c @@ -87,7 +87,7 @@ bool os_getAndClearPendingActivationRequest(void) return false; } -bool os_blockScreensaver() +bool os_blockScreensaver(void) { return false; } @@ -111,7 +111,7 @@ KVMFROS os_getKVMFRType(void) return KVMFR_OS_LINUX; } -static const char * getPrettyName() +static const char * getPrettyName(void) { static char buffer[256]; diff --git a/host/platform/Windows/src/platform.c b/host/platform/Windows/src/platform.c index adc4a90b..a734f112 100644 --- a/host/platform/Windows/src/platform.c +++ b/host/platform/Windows/src/platform.c @@ -300,7 +300,7 @@ const char *getSystemLogDirectory(void) return app.systemLogDir; } -static void populateSystemLogDirectory() +static void populateSystemLogDirectory(void) { char programData[MAX_PATH]; if (GetEnvironmentVariableA("ProgramData", programData, sizeof(programData)) && @@ -593,7 +593,7 @@ bool os_getAndClearPendingActivationRequest(void) return atomic_exchange(&app.hasPendingActivationRequest, false); } -bool os_blockScreensaver() +bool os_blockScreensaver(void) { static bool lastResult = false; static ULONGLONG lastCheck = 0; diff --git a/host/platform/Windows/src/service.c b/host/platform/Windows/src/service.c index 35ef0af6..01611055 100644 --- a/host/platform/Windows/src/service.c +++ b/host/platform/Windows/src/service.c @@ -58,7 +58,7 @@ struct Service service = { 0 }; char logTime[100]; -char * currentTime() +char * currentTime(void) { time_t t = time(NULL); strftime(logTime, sizeof logTime, "%Y-%m-%d %H:%M:%S", localtime(&t)); diff --git a/host/src/app.c b/host/src/app.c index 6695323b..4acabedd 100644 --- a/host/src/app.c +++ b/host/src/app.c @@ -510,7 +510,7 @@ void capturePostPointerBuffer(CapturePointer pointer) LG_UNLOCK(app.pointerLock); } -static void lgmpShutdown() +static void lgmpShutdown(void) { if (app.lgmpTimer) lgTimerDestroy(app.lgmpTimer);