[warnings] Fixed strict-prototypes warnings
This commit is contained in:
parent
24b3d0c9f3
commit
3d8cb485f4
@ -27,7 +27,7 @@
|
||||
|
||||
#define TAG FREERDP_TAG("utils")
|
||||
|
||||
static MSUSB_PIPE_DESCRIPTOR* msusb_mspipe_new()
|
||||
static MSUSB_PIPE_DESCRIPTOR* msusb_mspipe_new(void)
|
||||
{
|
||||
return (MSUSB_PIPE_DESCRIPTOR*)calloc(1, sizeof(MSUSB_PIPE_DESCRIPTOR));
|
||||
}
|
||||
|
@ -1647,7 +1647,7 @@ static void xf_PanningChangeEventHandler(void* context, const PanningChangeEvent
|
||||
* Client Interface
|
||||
*/
|
||||
|
||||
static BOOL xfreerdp_client_global_init()
|
||||
static BOOL xfreerdp_client_global_init(void)
|
||||
{
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
@ -1657,7 +1657,7 @@ static BOOL xfreerdp_client_global_init()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void xfreerdp_client_global_uninit()
|
||||
static void xfreerdp_client_global_uninit(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -1315,7 +1315,6 @@ char* freerdp_certificate_get_pem(const rdpCertificate* cert, size_t* pLength)
|
||||
|
||||
BIO* bio;
|
||||
int status;
|
||||
BOOL rc = FALSE;
|
||||
|
||||
/**
|
||||
* Don't manage certificates internally, leave it up entirely to the external client
|
||||
|
@ -1411,7 +1411,7 @@ create_response:
|
||||
return vgids_create_response(status, NULL, 0, response, responseSize);
|
||||
}
|
||||
|
||||
vgidsContext* vgids_new()
|
||||
vgidsContext* vgids_new(void)
|
||||
{
|
||||
wObject* obj;
|
||||
vgidsContext* ctx = calloc(1, sizeof(vgidsContext));
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include "rdtk_engine.h"
|
||||
|
||||
rdtkEngine* rdtk_engine_new()
|
||||
rdtkEngine* rdtk_engine_new(void)
|
||||
{
|
||||
rdtkEngine* engine;
|
||||
|
||||
|
@ -112,7 +112,7 @@ static void _CommInit(void)
|
||||
* Returns TRUE when the comm module is correctly intialized, FALSE otherwise
|
||||
* with ERROR_DLL_INIT_FAILED set as the last error.
|
||||
*/
|
||||
static BOOL CommInitialized()
|
||||
static BOOL CommInitialized(void)
|
||||
{
|
||||
if (pthread_once(&_CommInitialized, _CommInit) != 0)
|
||||
{
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <winpr/crypto.h>
|
||||
#include <winpr/ssl.h>
|
||||
|
||||
static BOOL test_crypto_cipher_aes_128_cbc()
|
||||
static BOOL test_crypto_cipher_aes_128_cbc(void)
|
||||
{
|
||||
WINPR_CIPHER_CTX* ctx;
|
||||
BOOL result = FALSE;
|
||||
@ -110,7 +110,7 @@ static const BYTE* TEST_RC4_KEY = (BYTE*)"Key";
|
||||
static const char* TEST_RC4_PLAINTEXT = "Plaintext";
|
||||
static const BYTE* TEST_RC4_CIPHERTEXT = (BYTE*)"\xBB\xF3\x16\xE8\xD9\x40\xAF\x0A\xD3";
|
||||
|
||||
static BOOL test_crypto_cipher_rc4()
|
||||
static BOOL test_crypto_cipher_rc4(void)
|
||||
{
|
||||
size_t len;
|
||||
BOOL rc = FALSE;
|
||||
@ -175,7 +175,7 @@ static const BYTE* TEST_CIPHER_KEY =
|
||||
static const BYTE* TEST_CIPHER_IV =
|
||||
(BYTE*)"\xFE\xE3\x9F\xF0\xD1\x5E\x37\x0C\xAB\xAB\x9B\x04\xF3\xDB\x99\x15";
|
||||
|
||||
static BOOL test_crypto_cipher_key()
|
||||
static BOOL test_crypto_cipher_key(void)
|
||||
{
|
||||
int status;
|
||||
BYTE key[32] = { 0 };
|
||||
|
@ -184,7 +184,7 @@ extern HANDLE_CREATOR* GetNamedPipeClientHandleCreator(void);
|
||||
#include "../comm/comm.h"
|
||||
#endif /* __linux__ && !defined ANDROID */
|
||||
|
||||
static void _HandleCreatorsInit()
|
||||
static void _HandleCreatorsInit(void)
|
||||
{
|
||||
WINPR_ASSERT(_HandleCreators == NULL);
|
||||
_HandleCreators = ArrayList_New(TRUE);
|
||||
|
@ -261,7 +261,7 @@ char* GetNamedPipeNameWithoutPrefixA(LPCSTR lpName)
|
||||
return lpFileName;
|
||||
}
|
||||
|
||||
char* GetNamedPipeUnixDomainSocketBaseFilePathA()
|
||||
char* GetNamedPipeUnixDomainSocketBaseFilePathA(void)
|
||||
{
|
||||
char* lpTempPath;
|
||||
char* lpPipePath;
|
||||
|
@ -456,7 +456,7 @@ static HANDLE_OPS namedOps = { NamedPipeIsHandled,
|
||||
NULL,
|
||||
NULL };
|
||||
|
||||
static BOOL InitWinPRPipeModule()
|
||||
static BOOL InitWinPRPipeModule(void)
|
||||
{
|
||||
if (g_NamedPipeServerSockets)
|
||||
return TRUE;
|
||||
|
@ -402,7 +402,7 @@ RPC_STATUS RpcServerUseProtseqIfExW(RPC_WSTR Protseq, unsigned int MaxCalls, RPC
|
||||
return 0;
|
||||
}
|
||||
|
||||
void RpcServerYield()
|
||||
void RpcServerYield(void)
|
||||
{
|
||||
WLog_ERR(TAG, "Not implemented");
|
||||
}
|
||||
@ -524,7 +524,7 @@ RPC_STATUS RpcRevertToSelfEx(RPC_BINDING_HANDLE BindingHandle)
|
||||
return 0;
|
||||
}
|
||||
|
||||
RPC_STATUS RpcRevertToSelf()
|
||||
RPC_STATUS RpcRevertToSelf(void)
|
||||
{
|
||||
WLog_ERR(TAG, "Not implemented");
|
||||
return 0;
|
||||
@ -659,7 +659,7 @@ void RpcRaiseException(RPC_STATUS exception)
|
||||
exit((int)exception);
|
||||
}
|
||||
|
||||
RPC_STATUS RpcTestCancel()
|
||||
RPC_STATUS RpcTestCancel(void)
|
||||
{
|
||||
WLog_ERR(TAG, "Not implemented");
|
||||
return 0;
|
||||
|
@ -555,7 +555,7 @@ SECURITY_STATUS schannel_openssl_decrypt_message(SCHANNEL_OPENSSL* context, PSec
|
||||
return SEC_E_OK;
|
||||
}
|
||||
|
||||
SCHANNEL_OPENSSL* schannel_openssl_new()
|
||||
SCHANNEL_OPENSSL* schannel_openssl_new(void)
|
||||
{
|
||||
SCHANNEL_OPENSSL* context;
|
||||
context = (SCHANNEL_OPENSSL*)calloc(1, sizeof(SCHANNEL_OPENSSL));
|
||||
|
@ -42,7 +42,7 @@ void MessagePipe_PostQuit(wMessagePipe* pipe, int nExitCode)
|
||||
* Construction, Destruction
|
||||
*/
|
||||
|
||||
wMessagePipe* MessagePipe_New()
|
||||
wMessagePipe* MessagePipe_New(void)
|
||||
{
|
||||
wMessagePipe* pipe = NULL;
|
||||
|
||||
|
@ -87,7 +87,7 @@ static BOOL TestStream_New(void)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static BOOL TestStream_Static()
|
||||
static BOOL TestStream_Static(void)
|
||||
{
|
||||
BYTE buffer[20];
|
||||
wStream staticStream, *s = &staticStream;
|
||||
|
@ -712,7 +712,7 @@ static BOOL LoadAndInitialize(char* library)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void InitializeWtsApiStubs_Env()
|
||||
static void InitializeWtsApiStubs_Env(void)
|
||||
{
|
||||
DWORD nSize;
|
||||
char* env = NULL;
|
||||
@ -737,7 +737,7 @@ static void InitializeWtsApiStubs_Env()
|
||||
|
||||
#define FREERDS_LIBRARY_NAME "libfreerds-fdsapi.so"
|
||||
|
||||
static void InitializeWtsApiStubs_FreeRDS()
|
||||
static void InitializeWtsApiStubs_FreeRDS(void)
|
||||
{
|
||||
wIniFile* ini;
|
||||
const char* prefix;
|
||||
|
Loading…
Reference in New Issue
Block a user