[host] cleanup some missing (void) parameters

This commit is contained in:
Tudor Brindus authored and Geoffrey McRae committed 2022-02-08 16:37:17 +11:00
1 parent 0ea188faf8
commit 9ddfa585ec
5 files changed
+12 -12

No files matched your search

+6 -6
View File
@@ -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);
+2 -2
View File
@@ -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];
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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));
+1 -1
View File
@@ -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);