From 865ff2a5f8d82609e42677fb978d47aff20cbc93 Mon Sep 17 00:00:00 2001 From: hardening Date: Thu, 14 Feb 2013 22:20:43 +0100 Subject: [PATCH] Fixed compilation with -Wstrict-prototypes --- channels/rail/client/rail_orders.h | 2 +- channels/urbdrc/client/isoch_queue.h | 2 +- channels/urbdrc/client/libusb/request_queue.h | 2 +- client/Android/jni/android_event.h | 2 +- client/Android/jni/android_jni_callback.h | 2 +- client/DirectFB/df_event.h | 2 +- client/Mac/AppDelegate.h | 2 +- client/Mac/MRDPView.h | 4 ++-- include/freerdp/addin.h | 4 ++-- include/freerdp/client/cmdline.h | 2 +- include/freerdp/client/file.h | 2 +- include/freerdp/freerdp.h | 2 +- include/freerdp/gdi/dc.h | 2 +- include/freerdp/gdi/palette.h | 2 +- include/freerdp/locale/locale.h | 4 ++-- include/freerdp/utils/msusb.h | 2 +- include/freerdp/utils/profiler.h | 4 ++-- include/freerdp/utils/stopwatch.h | 2 +- include/freerdp/utils/tcp.h | 4 ++-- include/freerdp/utils/time.h | 2 +- libfreerdp/core/certificate.h | 2 +- libfreerdp/core/gateway/http.h | 6 +++--- libfreerdp/core/gateway/ncacn_http.h | 2 +- libfreerdp/core/gateway/ntlm.h | 2 +- libfreerdp/core/license.h | 4 ++-- libfreerdp/core/redirection.h | 2 +- server/Mac/mf_event.h | 4 ++-- server/Mac/mf_info.h | 4 ++-- server/Mac/mf_mountain_lion.h | 10 +++++----- server/Mac/mf_rdpsnd.h | 2 +- server/Windows/wf_info.h | 4 ++-- server/Windows/wf_interface.h | 4 ++-- server/Windows/wf_peer.h | 8 ++++---- server/Windows/wf_rdpsnd.h | 4 ++-- server/X11/xf_event.h | 2 +- winpr/include/winpr/collections.h | 2 +- winpr/include/winpr/pool.h | 4 ++-- winpr/include/winpr/rpc.h | 6 +++--- winpr/include/winpr/sspi.h | 4 ++-- winpr/libwinpr/pool/pool.h | 4 ++-- winpr/libwinpr/sspi/CredSSP/credssp.h | 2 +- winpr/libwinpr/sspi/NTLM/ntlm.h | 2 +- winpr/libwinpr/sspi/Negotiate/negotiate.h | 2 +- winpr/libwinpr/sspi/Schannel/schannel.h | 2 +- winpr/libwinpr/sspi/Schannel/schannel_openssl.h | 2 +- winpr/libwinpr/sspi/sspi.h | 4 ++-- 46 files changed, 72 insertions(+), 72 deletions(-) diff --git a/channels/rail/client/rail_orders.h b/channels/rail/client/rail_orders.h index a445c40ed..27f2a6e34 100644 --- a/channels/rail/client/rail_orders.h +++ b/channels/rail/client/rail_orders.h @@ -91,7 +91,7 @@ void rail_send_client_window_move_order(rdpRailOrder* rail_order); void rail_send_client_get_appid_req_order(rdpRailOrder* rail_order); void rail_send_client_langbar_info_order(rdpRailOrder* rail_order); -rdpRailOrder* rail_order_new(); +rdpRailOrder* rail_order_new(void); void rail_order_free(rdpRailOrder* rail_order); #endif /* __RAIL_ORDERS_H */ diff --git a/channels/urbdrc/client/isoch_queue.h b/channels/urbdrc/client/isoch_queue.h index 14e3b5cf3..3f354f659 100644 --- a/channels/urbdrc/client/isoch_queue.h +++ b/channels/urbdrc/client/isoch_queue.h @@ -62,7 +62,7 @@ struct _ISOCH_CALLBACK_QUEUE }; -ISOCH_CALLBACK_QUEUE* isoch_queue_new(); +ISOCH_CALLBACK_QUEUE* isoch_queue_new(void); diff --git a/channels/urbdrc/client/libusb/request_queue.h b/channels/urbdrc/client/libusb/request_queue.h index 74fcf1169..e10e7ae70 100644 --- a/channels/urbdrc/client/libusb/request_queue.h +++ b/channels/urbdrc/client/libusb/request_queue.h @@ -59,7 +59,7 @@ struct _REQUEST_QUEUE }; -REQUEST_QUEUE* request_queue_new(); +REQUEST_QUEUE* request_queue_new(void); #endif /* __REQUEST_QUEUE_H */ diff --git a/client/Android/jni/android_event.h b/client/Android/jni/android_event.h index f0a373652..7a3b6e599 100644 --- a/client/Android/jni/android_event.h +++ b/client/Android/jni/android_event.h @@ -63,7 +63,7 @@ BOOL android_check_fds(freerdp * inst); ANDROID_EVENT_KEY* android_event_key_new(int flags, UINT16 scancode); ANDROID_EVENT_KEY* android_event_unicodekey_new(UINT16 key); ANDROID_EVENT_CURSOR* android_event_cursor_new(UINT16 flags, UINT16 x, UINT16 y); -ANDROID_EVENT* android_event_disconnect_new(); +ANDROID_EVENT* android_event_disconnect_new(void); void android_event_key_free(ANDROID_EVENT_KEY* event); void android_event_unicodekey_free(ANDROID_EVENT_KEY* event); void android_event_cursor_free(ANDROID_EVENT_CURSOR* event); diff --git a/client/Android/jni/android_jni_callback.h b/client/Android/jni/android_jni_callback.h index 106fc326b..dfc160682 100644 --- a/client/Android/jni/android_jni_callback.h +++ b/client/Android/jni/android_jni_callback.h @@ -18,7 +18,7 @@ jint init_callback_environment(JavaVM* vm); jboolean jni_attach_thread(JNIEnv** env); -void jni_detach_thread(); +void jni_detach_thread(void); void freerdp_callback(const char * callback, const char * signature, ...); jboolean freerdp_callback_bool_result(const char * callback, const char * signature, ...); void tsxconnect_callback(const char * callback, const char * signature, ...); diff --git a/client/DirectFB/df_event.h b/client/DirectFB/df_event.h index 02ad95625..8e4cc773b 100644 --- a/client/DirectFB/df_event.h +++ b/client/DirectFB/df_event.h @@ -22,7 +22,7 @@ #include "dfreerdp.h" -void df_keyboard_init(); +void df_keyboard_init(void); BOOL df_event_process(freerdp* instance, DFBEvent* event); #endif /* __DF_EVENT_H */ diff --git a/client/Mac/AppDelegate.h b/client/Mac/AppDelegate.h index 5af060d1c..d868d1564 100644 --- a/client/Mac/AppDelegate.h +++ b/client/Mac/AppDelegate.h @@ -15,5 +15,5 @@ @property (assign) IBOutlet NSWindow *window; -int rdp_connect(); +int rdp_connect(void); @end diff --git a/client/Mac/MRDPView.h b/client/Mac/MRDPView.h index d01a27d81..4efdb970f 100644 --- a/client/Mac/MRDPView.h +++ b/client/Mac/MRDPView.h @@ -99,7 +99,7 @@ void pointer_free(rdpContext* context, rdpPointer* pointer); void pointer_set(rdpContext* context, rdpPointer* pointer); void pointer_setNull(rdpContext* context); void pointer_setDefault(rdpContext* context); -int rdp_connect(); +int rdp_connect(void); BOOL mac_pre_connect(freerdp *inst); BOOL mac_post_connect(freerdp *inst); void mac_context_new(freerdp *inst, rdpContext *context); @@ -139,7 +139,7 @@ void mac_send_rail_client_event(rdpChannels *channels, UINT16 event_type, void * void mac_on_free_rail_client_event(RDP_EVENT* event); void mac_process_rail_server_sysparam_event(rdpChannels* channels, RDP_EVENT* event); void mac_process_rail_exec_result_event(rdpChannels* channels, RDP_EVENT* event); -void mac_rail_enable_remoteapp_mode(); +void mac_rail_enable_remoteapp_mode(void); void mac_process_rail_server_minmaxinfo_event(rdpChannels* channels, RDP_EVENT* event); void mac_process_rail_server_localmovesize_event(freerdp *inst, RDP_EVENT *event); void apple_center_window(NSRect * r); diff --git a/include/freerdp/addin.h b/include/freerdp/addin.h index dd0758c8e..ec0d69845 100644 --- a/include/freerdp/addin.h +++ b/include/freerdp/addin.h @@ -52,8 +52,8 @@ typedef void* (*FREERDP_LOAD_CHANNEL_ADDIN_ENTRY_FN)(LPCSTR pszName, LPSTR pszSu extern "C" { #endif -FREERDP_API LPSTR freerdp_get_library_install_path(); -FREERDP_API LPSTR freerdp_get_dynamic_addin_install_path(); +FREERDP_API LPSTR freerdp_get_library_install_path(void); +FREERDP_API LPSTR freerdp_get_dynamic_addin_install_path(void); FREERDP_API int freerdp_register_addin_provider(FREERDP_LOAD_CHANNEL_ADDIN_ENTRY_FN provider, DWORD dwFlags); diff --git a/include/freerdp/client/cmdline.h b/include/freerdp/client/cmdline.h index 212266a2f..e0a424e7e 100644 --- a/include/freerdp/client/cmdline.h +++ b/include/freerdp/client/cmdline.h @@ -30,7 +30,7 @@ extern "C" { FREERDP_API int freerdp_client_parse_command_line_arguments(int argc, char** argv, rdpSettings* settings); FREERDP_API int freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings); -FREERDP_API int freerdp_client_print_version(); +FREERDP_API int freerdp_client_print_version(void); FREERDP_API int freerdp_client_print_command_line_help(int argc, char** argv); FREERDP_API int freerdp_parse_username(char* username, char** user, char** domain); diff --git a/include/freerdp/client/file.h b/include/freerdp/client/file.h index 9ed4959e7..9b7936462 100644 --- a/include/freerdp/client/file.h +++ b/include/freerdp/client/file.h @@ -141,7 +141,7 @@ FREERDP_API BOOL freerdp_client_parse_rdp_file(rdpFile* file, char* name); FREERDP_API BOOL freerdp_client_parse_rdp_file_buffer(rdpFile* file, BYTE* buffer, size_t size); FREERDP_API BOOL freerdp_client_populate_settings_from_rdp_file(rdpFile* file, rdpSettings* settings); -FREERDP_API rdpFile* freerdp_client_rdp_file_new(); +FREERDP_API rdpFile* freerdp_client_rdp_file_new(void); FREERDP_API void freerdp_client_rdp_file_free(rdpFile* file); #ifdef __cplusplus diff --git a/include/freerdp/freerdp.h b/include/freerdp/freerdp.h index a7c1a9b2e..5f593a402 100644 --- a/include/freerdp/freerdp.h +++ b/include/freerdp/freerdp.h @@ -206,7 +206,7 @@ FREERDP_API UINT32 freerdp_error_info(freerdp* instance); FREERDP_API void freerdp_get_version(int* major, int* minor, int* revision); -FREERDP_API freerdp* freerdp_new(); +FREERDP_API freerdp* freerdp_new(void); FREERDP_API void freerdp_free(freerdp* instance); #ifdef __cplusplus diff --git a/include/freerdp/gdi/dc.h b/include/freerdp/gdi/dc.h index b42a30d08..1e3616ec6 100644 --- a/include/freerdp/gdi/dc.h +++ b/include/freerdp/gdi/dc.h @@ -23,7 +23,7 @@ #include #include -FREERDP_API HGDI_DC gdi_GetDC(); +FREERDP_API HGDI_DC gdi_GetDC(void); FREERDP_API HGDI_DC gdi_CreateDC(HCLRCONV clrconv, int bpp); FREERDP_API HGDI_DC gdi_CreateCompatibleDC(HGDI_DC hdc); FREERDP_API HGDIOBJECT gdi_SelectObject(HGDI_DC hdc, HGDIOBJECT hgdiobject); diff --git a/include/freerdp/gdi/palette.h b/include/freerdp/gdi/palette.h index a81fd5917..8ed2ec1c1 100644 --- a/include/freerdp/gdi/palette.h +++ b/include/freerdp/gdi/palette.h @@ -24,6 +24,6 @@ #include FREERDP_API HGDI_PALETTE gdi_CreatePalette(HGDI_PALETTE palette); -FREERDP_API HGDI_PALETTE gdi_GetSystemPalette(); +FREERDP_API HGDI_PALETTE gdi_GetSystemPalette(void); #endif /* FREERDP_GDI_PALETTE_H */ diff --git a/include/freerdp/locale/locale.h b/include/freerdp/locale/locale.h index d51b15516..54dfb391c 100644 --- a/include/freerdp/locale/locale.h +++ b/include/freerdp/locale/locale.h @@ -230,8 +230,8 @@ #define YORUBA 0x046A #define ZULU 0x0435 -FREERDP_API UINT32 freerdp_get_system_locale_id(); -FREERDP_API UINT32 freerdp_detect_keyboard_layout_from_system_locale(); +FREERDP_API UINT32 freerdp_get_system_locale_id(void); +FREERDP_API UINT32 freerdp_detect_keyboard_layout_from_system_locale(void); FREERDP_API const char* freerdp_get_system_locale_name_from_id(UINT32 localeId); #endif /* FREERDP_LOCALE_H */ diff --git a/include/freerdp/utils/msusb.h b/include/freerdp/utils/msusb.h index c48cf23fb..f5ce47d2a 100644 --- a/include/freerdp/utils/msusb.h +++ b/include/freerdp/utils/msusb.h @@ -133,7 +133,7 @@ FREERDP_API MSUSB_INTERFACE_DESCRIPTOR* msusb_msinterface_read(BYTE* data, UINT3 FREERDP_API int msusb_msinterface_write(MSUSB_INTERFACE_DESCRIPTOR* MsInterface, BYTE* data, int* offset); /* MSUSB_CONFIG exported functions */ -FREERDP_API MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_new(); +FREERDP_API MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_new(void); FREERDP_API void msusb_msconfig_free(MSUSB_CONFIG_DESCRIPTOR* MsConfig); FREERDP_API MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_read(BYTE* data, UINT32 data_size, UINT32 NumInterfaces); FREERDP_API int msusb_msconfig_write(MSUSB_CONFIG_DESCRIPTOR* MsConfg, BYTE* data, int * offset); diff --git a/include/freerdp/utils/profiler.h b/include/freerdp/utils/profiler.h index b4635317a..fd61cf1f2 100644 --- a/include/freerdp/utils/profiler.h +++ b/include/freerdp/utils/profiler.h @@ -40,9 +40,9 @@ FREERDP_API void profiler_free(PROFILER* profiler); FREERDP_API void profiler_enter(PROFILER* profiler); FREERDP_API void profiler_exit(PROFILER* profiler); -FREERDP_API void profiler_print_header(); +FREERDP_API void profiler_print_header(void); FREERDP_API void profiler_print(PROFILER* profiler); -FREERDP_API void profiler_print_footer(); +FREERDP_API void profiler_print_footer(void); #ifdef __cplusplus } diff --git a/include/freerdp/utils/stopwatch.h b/include/freerdp/utils/stopwatch.h index a0bd1cf43..843d1bd12 100644 --- a/include/freerdp/utils/stopwatch.h +++ b/include/freerdp/utils/stopwatch.h @@ -38,7 +38,7 @@ typedef struct _STOPWATCH STOPWATCH; extern "C" { #endif -FREERDP_API STOPWATCH* stopwatch_create(); +FREERDP_API STOPWATCH* stopwatch_create(void); FREERDP_API void stopwatch_free(STOPWATCH* stopwatch); FREERDP_API void stopwatch_start(STOPWATCH* stopwatch); diff --git a/include/freerdp/utils/tcp.h b/include/freerdp/utils/tcp.h index 3e3f0682a..3ed2153c9 100644 --- a/include/freerdp/utils/tcp.h +++ b/include/freerdp/utils/tcp.h @@ -36,8 +36,8 @@ FREERDP_API int freerdp_tcp_disconnect(int sockfd); FREERDP_API int freerdp_tcp_set_no_delay(int sockfd, BOOL no_delay); -FREERDP_API int freerdp_wsa_startup(); -FREERDP_API int freerdp_wsa_cleanup(); +FREERDP_API int freerdp_wsa_startup(void); +FREERDP_API int freerdp_wsa_cleanup(void); #ifdef __cplusplus } diff --git a/include/freerdp/utils/time.h b/include/freerdp/utils/time.h index 2fd74cf0a..d41b32bb9 100644 --- a/include/freerdp/utils/time.h +++ b/include/freerdp/utils/time.h @@ -34,7 +34,7 @@ extern "C" { #endif -FREERDP_API UINT64 freerdp_windows_gmtime(); +FREERDP_API UINT64 freerdp_windows_gmtime(void); FREERDP_API UINT64 freerdp_get_windows_time_from_unix_time(time_t unix_time); FREERDP_API time_t freerdp_get_unix_time_from_windows_time(UINT64 windows_time); diff --git a/libfreerdp/core/certificate.h b/libfreerdp/core/certificate.h index 06761daab..5013d1f95 100644 --- a/libfreerdp/core/certificate.h +++ b/libfreerdp/core/certificate.h @@ -51,7 +51,7 @@ BOOL certificate_read_server_proprietary_certificate(rdpCertificate* certificate BOOL certificate_read_server_x509_certificate_chain(rdpCertificate* certificate, STREAM* s); int certificate_read_server_certificate(rdpCertificate* certificate, BYTE* server_cert, int length); -rdpCertificate* certificate_new(); +rdpCertificate* certificate_new(void); void certificate_free(rdpCertificate* certificate); rdpRsaKey* key_new(const char *keyfile); diff --git a/libfreerdp/core/gateway/http.h b/libfreerdp/core/gateway/http.h index ca40d8e2f..386979585 100644 --- a/libfreerdp/core/gateway/http.h +++ b/libfreerdp/core/gateway/http.h @@ -50,7 +50,7 @@ void http_context_set_cache_control(HttpContext* http_context, char* cache_contr void http_context_set_connection(HttpContext* http_context, char* connection); void http_context_set_pragma(HttpContext* http_context, char* pragma); -HttpContext* http_context_new(); +HttpContext* http_context_new(void); void http_context_free(HttpContext* http_context); struct _http_request @@ -74,7 +74,7 @@ void http_request_set_auth_param(HttpRequest* http_request, char* auth_param); wStream* http_request_write(HttpContext* http_context, HttpRequest* http_request); -HttpRequest* http_request_new(); +HttpRequest* http_request_new(void); void http_request_free(HttpRequest* http_request); struct _http_response @@ -96,7 +96,7 @@ void http_response_print(HttpResponse* http_response); HttpResponse* http_response_recv(rdpTls* tls); -HttpResponse* http_response_new(); +HttpResponse* http_response_new(void); void http_response_free(HttpResponse* http_response); #endif /* FREERDP_CORE_HTTP_H */ diff --git a/libfreerdp/core/gateway/ncacn_http.h b/libfreerdp/core/gateway/ncacn_http.h index e46964c7d..80e84c2f8 100644 --- a/libfreerdp/core/gateway/ncacn_http.h +++ b/libfreerdp/core/gateway/ncacn_http.h @@ -36,7 +36,7 @@ BOOL rpc_ntlm_http_in_connect(rdpRpc* rpc); void rpc_ntlm_http_init_channel(rdpRpc* rpc, rdpNtlmHttp* ntlm_http, TSG_CHANNEL channel); -rdpNtlmHttp* ntlm_http_new(); +rdpNtlmHttp* ntlm_http_new(void); void ntlm_http_free(rdpNtlmHttp* ntlm_http); #endif diff --git a/libfreerdp/core/gateway/ntlm.h b/libfreerdp/core/gateway/ntlm.h index 845e0ad68..073b3f0dc 100644 --- a/libfreerdp/core/gateway/ntlm.h +++ b/libfreerdp/core/gateway/ntlm.h @@ -80,7 +80,7 @@ void ntlm_client_uninit(rdpNtlm* ntlm); BOOL ntlm_client_make_spn(rdpNtlm* ntlm, LPCTSTR ServiceClass, char* hostname); -rdpNtlm* ntlm_new(); +rdpNtlm* ntlm_new(void); void ntlm_free(rdpNtlm* ntlm); #endif /* FREERDP_CORE_NTLM_H */ diff --git a/libfreerdp/core/license.h b/libfreerdp/core/license.h index 8943c5708..21ea814fb 100644 --- a/libfreerdp/core/license.h +++ b/libfreerdp/core/license.h @@ -208,7 +208,7 @@ void license_generate_hwid(rdpLicense* license); void license_encrypt_premaster_secret(rdpLicense* license); void license_decrypt_platform_challenge(rdpLicense* license); -PRODUCT_INFO* license_new_product_info(); +PRODUCT_INFO* license_new_product_info(void); void license_free_product_info(PRODUCT_INFO* productInfo); BOOL license_read_product_info(STREAM* s, PRODUCT_INFO* productInfo); @@ -217,7 +217,7 @@ void license_free_binary_blob(LICENSE_BLOB* blob); BOOL license_read_binary_blob(STREAM* s, LICENSE_BLOB* blob); void license_write_binary_blob(STREAM* s, LICENSE_BLOB* blob); -SCOPE_LIST* license_new_scope_list(); +SCOPE_LIST* license_new_scope_list(void); void license_free_scope_list(SCOPE_LIST* scopeList); BOOL license_read_scope_list(STREAM* s, SCOPE_LIST* scopeList); diff --git a/libfreerdp/core/redirection.h b/libfreerdp/core/redirection.h index 1cb0c5f35..62279984e 100644 --- a/libfreerdp/core/redirection.h +++ b/libfreerdp/core/redirection.h @@ -49,7 +49,7 @@ typedef struct rdp_redirection rdpRedirection; BOOL rdp_recv_redirection_packet(rdpRdp* rdp, STREAM* s); BOOL rdp_recv_enhanced_security_redirection_packet(rdpRdp* rdp, STREAM* s); -rdpRedirection* redirection_new(); +rdpRedirection* redirection_new(void); void redirection_free(rdpRedirection* redirection); #ifdef WITH_DEBUG_REDIR diff --git a/server/Mac/mf_event.h b/server/Mac/mf_event.h index d77ce4764..e6eba71d8 100644 --- a/server/Mac/mf_event.h +++ b/server/Mac/mf_event.h @@ -69,7 +69,7 @@ void mf_event_region_free(mfEventRegion* event_region); mfEvent* mf_event_new(int type); void mf_event_free(mfEvent* event); -mfEventQueue* mf_event_queue_new(); +mfEventQueue* mf_event_queue_new(void); void mf_event_queue_free(mfEventQueue* event_queue); -#endif /* __MF_EVENT_H */ \ No newline at end of file +#endif /* __MF_EVENT_H */ diff --git a/server/Mac/mf_info.h b/server/Mac/mf_info.h index 7d0168862..ba2a58ed3 100644 --- a/server/Mac/mf_info.h +++ b/server/Mac/mf_info.h @@ -34,7 +34,7 @@ int mf_info_lock(mfInfo* mfi); int mf_info_try_lock(mfInfo* mfi, UINT32 ms); int mf_info_unlock(mfInfo* mfi); -mfInfo* mf_info_get_instance(); +mfInfo* mf_info_get_instance(void); void mf_info_peer_register(mfInfo* mfi, mfPeerContext* context); void mf_info_peer_unregister(mfInfo* mfi, mfPeerContext* context); @@ -47,4 +47,4 @@ BOOL mf_info_have_invalid_region(mfInfo* mfi); void mf_info_getScreenData(mfInfo* mfi, long* width, long* height, BYTE** pBits, int* pitch); //BOOL CALLBACK mf_info_monEnumCB(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData); -#endif /* mf_info_H */ \ No newline at end of file +#endif /* mf_info_H */ diff --git a/server/Mac/mf_mountain_lion.h b/server/Mac/mf_mountain_lion.h index fb634243e..4b840f057 100644 --- a/server/Mac/mf_mountain_lion.h +++ b/server/Mac/mf_mountain_lion.h @@ -25,15 +25,15 @@ int mf_mlion_display_info(UINT32* disp_width, UINT32* dispHeight, UINT32* scale); -int mf_mlion_screen_updates_init(); +int mf_mlion_screen_updates_init(void); -int mf_mlion_start_getting_screen_updates(); -int mf_mlion_stop_getting_screen_updates(); +int mf_mlion_start_getting_screen_updates(void); +int mf_mlion_stop_getting_screen_updates(void); int mf_mlion_get_dirty_region(RFX_RECT* invalid); int mf_mlion_peek_dirty_region(RFX_RECT* invalid); -int mf_mlion_clear_dirty_region(); +int mf_mlion_clear_dirty_region(void); int mf_mlion_get_pixelData(long x, long y, long width, long height, BYTE **pxData); -#endif \ No newline at end of file +#endif diff --git a/server/Mac/mf_rdpsnd.h b/server/Mac/mf_rdpsnd.h index b4a5454e2..f110d5772 100644 --- a/server/Mac/mf_rdpsnd.h +++ b/server/Mac/mf_rdpsnd.h @@ -60,7 +60,7 @@ struct _AQRecorderState typedef struct _AQRecorderState AQRecorderState; BOOL mf_peer_rdpsnd_init(mfPeerContext* context); -BOOL mf_peer_rdpsnd_stop(); +BOOL mf_peer_rdpsnd_stop(void); #endif /* MF_RDPSND_H */ diff --git a/server/Windows/wf_info.h b/server/Windows/wf_info.h index 8c1b6ae3f..d1dc44f2b 100644 --- a/server/Windows/wf_info.h +++ b/server/Windows/wf_info.h @@ -29,7 +29,7 @@ int wf_info_lock(wfInfo* wfi); int wf_info_try_lock(wfInfo* wfi, DWORD dwMilliseconds); int wf_info_unlock(wfInfo* wfi); -wfInfo* wf_info_get_instance(); +wfInfo* wf_info_get_instance(void); void wf_info_peer_register(wfInfo* wfi, wfPeerContext* context); void wf_info_peer_unregister(wfInfo* wfi, wfPeerContext* context); @@ -42,4 +42,4 @@ BOOL wf_info_have_invalid_region(wfInfo* wfi); void wf_info_getScreenData(wfInfo* wfi, long* width, long* height, BYTE** pBits, int* pitch); BOOL CALLBACK wf_info_monEnumCB(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData); -#endif /* WF_INFO_H */ \ No newline at end of file +#endif /* WF_INFO_H */ diff --git a/server/Windows/wf_interface.h b/server/Windows/wf_interface.h index 83819eac0..9b60c1584 100644 --- a/server/Windows/wf_interface.h +++ b/server/Windows/wf_interface.h @@ -118,12 +118,12 @@ FREERDP_API void set_screen_id(int id); FREERDP_API BOOL wfreerdp_server_start(wfServer* server); FREERDP_API BOOL wfreerdp_server_stop(wfServer* server); -FREERDP_API wfServer* wfreerdp_server_new(); +FREERDP_API wfServer* wfreerdp_server_new(void); FREERDP_API void wfreerdp_server_free(wfServer* server); FREERDP_API BOOL wfreerdp_server_is_running(wfServer* server); -FREERDP_API UINT32 wfreerdp_server_num_peers(); +FREERDP_API UINT32 wfreerdp_server_num_peers(void); FREERDP_API UINT32 wfreerdp_server_get_peer_hostname(int pId, wchar_t * dstStr); FREERDP_API BOOL wfreerdp_server_peer_is_local(int pId); FREERDP_API BOOL wfreerdp_server_peer_is_connected(int pId); diff --git a/server/Windows/wf_peer.h b/server/Windows/wf_peer.h index 0aa76f82a..a825b9652 100644 --- a/server/Windows/wf_peer.h +++ b/server/Windows/wf_peer.h @@ -40,12 +40,12 @@ BOOL wf_peer_activate(freerdp_peer* client); void wf_peer_synchronize_event(rdpInput* input, UINT32 flags); void wf_peer_send_changes(freerdp_peer* client); - -void wf_detect_win_ver(); - + +void wf_detect_win_ver(void); + void wf_peer_accepted(freerdp_listener* instance, freerdp_peer* client); DWORD WINAPI wf_peer_main_loop(LPVOID lpParam); - + #endif /* WF_PEER_H */ diff --git a/server/Windows/wf_rdpsnd.h b/server/Windows/wf_rdpsnd.h index d54c4172d..2c67afac2 100644 --- a/server/Windows/wf_rdpsnd.h +++ b/server/Windows/wf_rdpsnd.h @@ -26,8 +26,8 @@ #include "wf_interface.h" -int wf_rdpsnd_lock(); -int wf_rdpsnd_unlock(); +int wf_rdpsnd_lock(void); +int wf_rdpsnd_unlock(void); BOOL wf_peer_rdpsnd_init(wfPeerContext* context); DWORD WINAPI wf_rdpsnd_thread(LPVOID lpParam); diff --git a/server/X11/xf_event.h b/server/X11/xf_event.h index 1b983b940..41bcb233e 100644 --- a/server/X11/xf_event.h +++ b/server/X11/xf_event.h @@ -69,7 +69,7 @@ void xf_event_region_free(xfEventRegion* event_region); xfEvent* xf_event_new(int type); void xf_event_free(xfEvent* event); -xfEventQueue* xf_event_queue_new(); +xfEventQueue* xf_event_queue_new(void); void xf_event_queue_free(xfEventQueue* event_queue); #endif /* __XF_EVENT_H */ diff --git a/winpr/include/winpr/collections.h b/winpr/include/winpr/collections.h index 41ca36bc3..7d4fe5e86 100644 --- a/winpr/include/winpr/collections.h +++ b/winpr/include/winpr/collections.h @@ -285,7 +285,7 @@ WINPR_API void MessageQueue_PostQuit(wMessageQueue* queue, int nExitCode); WINPR_API int MessageQueue_Get(wMessageQueue* queue, wMessage* message); WINPR_API int MessageQueue_Peek(wMessageQueue* queue, wMessage* message, BOOL remove); -WINPR_API wMessageQueue* MessageQueue_New(); +WINPR_API wMessageQueue* MessageQueue_New(void); WINPR_API void MessageQueue_Free(wMessageQueue* queue); #endif /* WINPR_COLLECTIONS_H */ diff --git a/winpr/include/winpr/pool.h b/winpr/include/winpr/pool.h index 500143748..d4af20b83 100644 --- a/winpr/include/winpr/pool.h +++ b/winpr/include/winpr/pool.h @@ -166,7 +166,7 @@ WINPR_API VOID WaitForThreadpoolIoCallbacks(PTP_IO pio, BOOL fCancelPendingCallb /* Clean-up Group */ -WINPR_API PTP_CLEANUP_GROUP CreateThreadpoolCleanupGroup(); +WINPR_API PTP_CLEANUP_GROUP CreateThreadpoolCleanupGroup(void); WINPR_API VOID CloseThreadpoolCleanupGroupMembers(PTP_CLEANUP_GROUP ptpcg, BOOL fCancelPendingCallbacks, PVOID pvCleanupContext); WINPR_API VOID CloseThreadpoolCleanupGroup(PTP_CLEANUP_GROUP ptpcg); @@ -203,6 +203,6 @@ WINPR_API VOID DisassociateCurrentThreadFromCallback(PTP_CALLBACK_INSTANCE pci); /* Dummy */ -WINPR_API void winpr_pool_dummy(); +WINPR_API void winpr_pool_dummy(void); #endif /* WINPR_POOL_H */ diff --git a/winpr/include/winpr/rpc.h b/winpr/include/winpr/rpc.h index 13acc075f..b009bd1f1 100644 --- a/winpr/include/winpr/rpc.h +++ b/winpr/include/winpr/rpc.h @@ -508,7 +508,7 @@ WINPR_API RPC_STATUS RpcServerUseProtseqIfA(RPC_CSTR Protseq, unsigned int MaxCa WINPR_API RPC_STATUS RpcServerUseProtseqIfExA(RPC_CSTR Protseq, unsigned int MaxCalls, RPC_IF_HANDLE IfSpec, void* SecurityDescriptor, PRPC_POLICY Policy); WINPR_API RPC_STATUS RpcServerUseProtseqIfW(RPC_WSTR Protseq, unsigned int MaxCalls, RPC_IF_HANDLE IfSpec, void* SecurityDescriptor); WINPR_API RPC_STATUS RpcServerUseProtseqIfExW(RPC_WSTR Protseq, unsigned int MaxCalls, RPC_IF_HANDLE IfSpec, void* SecurityDescriptor, PRPC_POLICY Policy); -WINPR_API void RpcServerYield(); +WINPR_API void RpcServerYield(void); WINPR_API RPC_STATUS RpcMgmtStatsVectorFree(RPC_STATS_VECTOR** StatsVector); WINPR_API RPC_STATUS RpcMgmtInqStats(RPC_BINDING_HANDLE Binding, RPC_STATS_VECTOR** Statistics); WINPR_API RPC_STATUS RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding); @@ -529,7 +529,7 @@ WINPR_API RPC_STATUS RpcNsBindingInqEntryNameW(RPC_BINDING_HANDLE Binding, unsig WINPR_API RPC_STATUS RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle); WINPR_API RPC_STATUS RpcRevertToSelfEx(RPC_BINDING_HANDLE BindingHandle); -WINPR_API RPC_STATUS RpcRevertToSelf(); +WINPR_API RPC_STATUS RpcRevertToSelf(void); WINPR_API RPC_STATUS RpcBindingInqAuthClientA(RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE* Privs, RPC_CSTR* ServerPrincName, unsigned long* AuthnLevel, unsigned long* AuthnSvc, unsigned long* AuthzSvc); WINPR_API RPC_STATUS RpcBindingInqAuthClientW(RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE* Privs, @@ -562,7 +562,7 @@ WINPR_API RPC_STATUS RpcServerRegisterAuthInfoW(RPC_WSTR ServerPrincName, unsign WINPR_API RPC_STATUS RpcBindingServerFromClient(RPC_BINDING_HANDLE ClientBinding, RPC_BINDING_HANDLE* ServerBinding); WINPR_API DECLSPEC_NORETURN void RpcRaiseException(RPC_STATUS exception); -WINPR_API RPC_STATUS RpcTestCancel(); +WINPR_API RPC_STATUS RpcTestCancel(void); WINPR_API RPC_STATUS RpcServerTestCancel(RPC_BINDING_HANDLE BindingHandle); WINPR_API RPC_STATUS RpcCancelThread(void* Thread); WINPR_API RPC_STATUS RpcCancelThreadEx(void* Thread, long Timeout); diff --git a/winpr/include/winpr/sspi.h b/winpr/include/winpr/sspi.h index d486540b4..a2d780a47 100644 --- a/winpr/include/winpr/sspi.h +++ b/winpr/include/winpr/sspi.h @@ -996,8 +996,8 @@ WINPR_API SECURITY_STATUS SEC_ENTRY VerifySignature(PCtxtHandle phContext, PSecB /* Custom API */ -WINPR_API void sspi_GlobalInit(); -WINPR_API void sspi_GlobalFinish(); +WINPR_API void sspi_GlobalInit(void); +WINPR_API void sspi_GlobalFinish(void); WINPR_API void sspi_SecBufferAlloc(PSecBuffer SecBuffer, size_t size); WINPR_API void sspi_SecBufferFree(PSecBuffer SecBuffer); diff --git a/winpr/libwinpr/pool/pool.h b/winpr/libwinpr/pool/pool.h index 81485f45e..5c675282e 100644 --- a/winpr/libwinpr/pool/pool.h +++ b/winpr/libwinpr/pool/pool.h @@ -69,8 +69,8 @@ struct _TP_CLEANUP_GROUP #ifndef _WIN32 -PTP_POOL GetDefaultThreadpool(); -PTP_CALLBACK_ENVIRON GetDefaultThreadpoolEnvironment(); +PTP_POOL GetDefaultThreadpool(void); +PTP_CALLBACK_ENVIRON GetDefaultThreadpoolEnvironment(void); #endif diff --git a/winpr/libwinpr/sspi/CredSSP/credssp.h b/winpr/libwinpr/sspi/CredSSP/credssp.h index ac3a5d220..0badddd88 100644 --- a/winpr/libwinpr/sspi/CredSSP/credssp.h +++ b/winpr/libwinpr/sspi/CredSSP/credssp.h @@ -30,7 +30,7 @@ struct _CREDSSP_CONTEXT }; typedef struct _CREDSSP_CONTEXT CREDSSP_CONTEXT; -CREDSSP_CONTEXT* credssp_ContextNew(); +CREDSSP_CONTEXT* credssp_ContextNew(void); void credssp_ContextFree(CREDSSP_CONTEXT* context); #endif /* WINPR_SSPI_CREDSSP_PRIVATE_H */ diff --git a/winpr/libwinpr/sspi/NTLM/ntlm.h b/winpr/libwinpr/sspi/NTLM/ntlm.h index 474880d0a..99e7bde59 100644 --- a/winpr/libwinpr/sspi/NTLM/ntlm.h +++ b/winpr/libwinpr/sspi/NTLM/ntlm.h @@ -275,7 +275,7 @@ struct _NTLM_CONTEXT }; typedef struct _NTLM_CONTEXT NTLM_CONTEXT; -NTLM_CONTEXT* ntlm_ContextNew(); +NTLM_CONTEXT* ntlm_ContextNew(void); void ntlm_ContextFree(NTLM_CONTEXT* context); #ifdef WITH_DEBUG_NLA diff --git a/winpr/libwinpr/sspi/Negotiate/negotiate.h b/winpr/libwinpr/sspi/Negotiate/negotiate.h index 2f19a66e3..e6df5032a 100644 --- a/winpr/libwinpr/sspi/Negotiate/negotiate.h +++ b/winpr/libwinpr/sspi/Negotiate/negotiate.h @@ -45,7 +45,7 @@ struct _NEGOTIATE_CONTEXT }; typedef struct _NEGOTIATE_CONTEXT NEGOTIATE_CONTEXT; -NEGOTIATE_CONTEXT* negotiate_ContextNew(); +NEGOTIATE_CONTEXT* negotiate_ContextNew(void); void negotiate_ContextFree(NEGOTIATE_CONTEXT* context); #endif /* WINPR_SSPI_NEGOTIATE_PRIVATE_H */ diff --git a/winpr/libwinpr/sspi/Schannel/schannel.h b/winpr/libwinpr/sspi/Schannel/schannel.h index 0ec9a833c..a4e480a64 100644 --- a/winpr/libwinpr/sspi/Schannel/schannel.h +++ b/winpr/libwinpr/sspi/Schannel/schannel.h @@ -42,7 +42,7 @@ struct _SCHANNEL_CONTEXT }; typedef struct _SCHANNEL_CONTEXT SCHANNEL_CONTEXT; -SCHANNEL_CONTEXT* schannel_ContextNew(); +SCHANNEL_CONTEXT* schannel_ContextNew(void); void schannel_ContextFree(SCHANNEL_CONTEXT* context); #endif /* WINPR_SSPI_SCHANNEL_PRIVATE_H */ diff --git a/winpr/libwinpr/sspi/Schannel/schannel_openssl.h b/winpr/libwinpr/sspi/Schannel/schannel_openssl.h index 1449aad33..1dfe9207d 100644 --- a/winpr/libwinpr/sspi/Schannel/schannel_openssl.h +++ b/winpr/libwinpr/sspi/Schannel/schannel_openssl.h @@ -52,7 +52,7 @@ SECURITY_STATUS schannel_openssl_server_process_tokens(SCHANNEL_OPENSSL* context SECURITY_STATUS schannel_openssl_encrypt_message(SCHANNEL_OPENSSL* context, PSecBufferDesc pMessage); SECURITY_STATUS schannel_openssl_decrypt_message(SCHANNEL_OPENSSL* context, PSecBufferDesc pMessage); -SCHANNEL_OPENSSL* schannel_openssl_new(); +SCHANNEL_OPENSSL* schannel_openssl_new(void); void schannel_openssl_free(SCHANNEL_OPENSSL* context); #endif /* WINPR_SSPI_SCHANNEL_OPENSSL_H */ diff --git a/winpr/libwinpr/sspi/sspi.h b/winpr/libwinpr/sspi/sspi.h index b8ebfb234..dab63578b 100644 --- a/winpr/libwinpr/sspi/sspi.h +++ b/winpr/libwinpr/sspi/sspi.h @@ -30,12 +30,12 @@ struct _CREDENTIALS }; typedef struct _CREDENTIALS CREDENTIALS; -CREDENTIALS* sspi_CredentialsNew(); +CREDENTIALS* sspi_CredentialsNew(void); void sspi_CredentialsFree(CREDENTIALS* credentials); PSecBuffer sspi_FindSecBuffer(PSecBufferDesc pMessage, ULONG BufferType); -SecHandle* sspi_SecureHandleAlloc(); +SecHandle* sspi_SecureHandleAlloc(void); void sspi_SecureHandleInit(SecHandle* handle); void sspi_SecureHandleInvalidate(SecHandle* handle); void* sspi_SecureHandleGetLowerPointer(SecHandle* handle);