Merge pull request #972 from hardening/includeFixes

Include fixes
This commit is contained in:
Marc-André Moreau 2013-02-15 08:17:35 -08:00
commit 15069020d3
15 changed files with 17 additions and 17 deletions

View File

@ -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 */

View File

@ -22,7 +22,7 @@
#include "dfreerdp.h"
void df_keyboard_init();
void df_keyboard_init(void);
boolean df_event_process(freerdp* instance, DFBEvent* event);
#endif /* __DF_EVENT_H */

View File

@ -114,7 +114,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

View File

@ -23,7 +23,7 @@
#include <freerdp/api.h>
#include <freerdp/gdi/gdi.h>
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);

View File

@ -24,6 +24,6 @@
#include <freerdp/gdi/gdi.h>
FREERDP_API HGDI_PALETTE gdi_CreatePalette(HGDI_PALETTE palette);
FREERDP_API HGDI_PALETTE gdi_GetSystemPalette();
FREERDP_API HGDI_PALETTE gdi_GetSystemPalette(void);
#endif /* __GDI_PALETTE_H */

View File

@ -323,6 +323,6 @@ Time zones, taken from Windows Server 2008
(GMT +13:00) Nuku'alofa
*/
FREERDP_API uint32 detect_keyboard_layout_from_locale();
FREERDP_API uint32 detect_keyboard_layout_from_locale(void);
#endif /* __LOCALES_H */

View File

@ -42,9 +42,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 WITH_PROFILER
#define IF_PROFILER(then) then

View File

@ -34,7 +34,7 @@ struct _STOPWATCH
};
typedef struct _STOPWATCH STOPWATCH;
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);

View File

@ -45,7 +45,7 @@ struct _UNICONV
};
typedef struct _UNICONV UNICONV;
FREERDP_API UNICONV* freerdp_uniconv_new();
FREERDP_API UNICONV* freerdp_uniconv_new(void);
FREERDP_API void freerdp_uniconv_free(UNICONV *uniconv);
FREERDP_API char* freerdp_uniconv_in(UNICONV *uniconv, unsigned char* pin, size_t in_len);
FREERDP_API char* freerdp_uniconv_out(UNICONV *uniconv, char *str, size_t *pout_len);

View File

@ -30,7 +30,7 @@ struct _RFX_POOL
};
typedef struct _RFX_POOL RFX_POOL;
RFX_POOL* rfx_pool_new();
RFX_POOL* rfx_pool_new(void);
void rfx_pool_free(RFX_POOL* pool);
void rfx_pool_put_tile(RFX_POOL* pool, RFX_TILE* tile);
RFX_TILE* rfx_pool_get_tile(RFX_POOL* pool);

View File

@ -83,7 +83,7 @@ boolean certificate_read_server_proprietary_certificate(rdpCertificate* certific
boolean certificate_read_server_x509_certificate_chain(rdpCertificate* certificate, STREAM* s);
boolean certificate_read_server_certificate(rdpCertificate* certificate, uint8* server_cert, int length);
rdpCertificate* certificate_new();
rdpCertificate* certificate_new(void);
void certificate_free(rdpCertificate* certificate);
rdpKey* key_new(const char *keyfile);

View File

@ -166,7 +166,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);
void license_read_product_info(STREAM* s, PRODUCT_INFO* productInfo);
@ -175,7 +175,7 @@ void license_free_binary_blob(LICENSE_BLOB* blob);
void 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);
void license_read_scope_list(STREAM* s, SCOPE_LIST* scopeList);

View File

@ -153,7 +153,7 @@ int ntlmssp_decrypt_message(NTLMSSP* ntlmssp, rdpBlob* encrypted_msg, rdpBlob* m
int ntlmssp_recv(NTLMSSP* ntlmssp, STREAM* s);
int ntlmssp_send(NTLMSSP* ntlmssp, STREAM* s);
NTLMSSP* ntlmssp_new();
NTLMSSP* ntlmssp_new(void);
void ntlmssp_init(NTLMSSP* ntlmssp);
void ntlmssp_free(NTLMSSP* ntlmssp);

View File

@ -63,7 +63,7 @@ typedef struct rdp_redirection rdpRedirection;
boolean rdp_recv_redirection_packet(rdpRdp* rdp, STREAM* s);
boolean 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

View File

@ -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 */