diff options
| author | Pavel Roskin <plroskin@gmail.com> | 2016-12-23 09:52:22 -0800 |
|---|---|---|
| committer | Pavel Roskin <plroskin@gmail.com> | 2017-01-05 17:27:20 -0800 |
| commit | 6664aac00ff0c4a29ff4e09acabcb089d0a2ede3 (patch) | |
| tree | b6092c8de5a6fb301da639adc9c4518741547fbe /common | |
| parent | 15a24ff1c4e35fdc6e9c8df0645ade44cddbafc5 (diff) | |
| download | xrdp-proprietary-6664aac00ff0c4a29ff4e09acabcb089d0a2ede3.tar.gz xrdp-proprietary-6664aac00ff0c4a29ff4e09acabcb089d0a2ede3.zip | |
Use "void" for empty argument list in declarations
In C, an empty argument list in a declaration means that the function
can accept any arguments. Use "void" instead, it means "no arguments".
C++ treats void and empty list as "no arguments".
Diffstat (limited to 'common')
| -rw-r--r-- | common/arch.h | 2 | ||||
| -rw-r--r-- | common/ssl_calls.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/arch.h b/common/arch.h index 7070d6ae..dfeaa596 100644 --- a/common/arch.h +++ b/common/arch.h @@ -140,7 +140,7 @@ typedef signed long long tsi64; #ifdef __cplusplus extern "C" { #endif - tintptr mod_init(); + tintptr mod_init(void); int mod_exit(tintptr); #ifdef __cplusplus } diff --git a/common/ssl_calls.c b/common/ssl_calls.c index 72ab5eb7..102c6e39 100644 --- a/common/ssl_calls.c +++ b/common/ssl_calls.c @@ -42,7 +42,7 @@ #if OPENSSL_VERSION_NUMBER < 0x10100000L static inline HMAC_CTX * -HMAC_CTX_new() +HMAC_CTX_new(void) { HMAC_CTX *hmac_ctx = g_new(HMAC_CTX, 1); HMAC_CTX_init(hmac_ctx); |
