diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-10-16 23:14:06 -0700 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-10-17 08:54:07 -0700 |
commit | 6fef1e4eb53877d41f52f2b4d93ea11eb680b6b3 (patch) | |
tree | 6d1c34a0f0b598b802af3fdcf31c40d0ad1b64c4 /common/os_calls.h | |
parent | bc868b96b1a88085cf141428ef8c72f5cd496c2e (diff) | |
download | xrdp-proprietary-6fef1e4eb53877d41f52f2b4d93ea11eb680b6b3.tar.gz xrdp-proprietary-6fef1e4eb53877d41f52f2b4d93ea11eb680b6b3.zip |
Use const pointers in function arguments when possible
Diffstat (limited to 'common/os_calls.h')
-rw-r--r-- | common/os_calls.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/os_calls.h b/common/os_calls.h index c103e144..00e91a1d 100644 --- a/common/os_calls.h +++ b/common/os_calls.h @@ -55,7 +55,7 @@ int DEFAULT_CC g_snprintf(char* dest, int len, const char* format, ...) \ printflike(3, 4); void DEFAULT_CC g_writeln(const char* format, ...) printflike(1, 2); void DEFAULT_CC g_write(const char* format, ...) printflike(1, 2); -void APP_CC g_hexdump(char* p, int len); +void APP_CC g_hexdump(const char *p, int len); void APP_CC g_memset(void* ptr, int val, int size); void APP_CC g_memcpy(void* d_ptr, const void* s_ptr, int size); int APP_CC g_getchar(void); @@ -88,7 +88,7 @@ int APP_CC g_sck_can_recv(int sck, int millis); int APP_CC g_sck_select(int sck1, int sck2); void APP_CC g_write_ip_address(int rcv_sck, char* ip_address, int bytes); void APP_CC g_sleep(int msecs); -tintptr APP_CC g_create_wait_obj(char* name); +tintptr APP_CC g_create_wait_obj(const char *name); tintptr APP_CC g_create_wait_obj_from_socket(tintptr socket, int write); void APP_CC g_delete_wait_obj_from_socket(tintptr wait_obj); int APP_CC g_set_wait_obj(tintptr obj); |