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 /xrdpapi/simple.c | |
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 'xrdpapi/simple.c')
-rw-r--r-- | xrdpapi/simple.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xrdpapi/simple.c b/xrdpapi/simple.c index 7a674b69..5781b003 100644 --- a/xrdpapi/simple.c +++ b/xrdpapi/simple.c @@ -37,8 +37,8 @@ #include <errno.h> /* forward declarations */ -int run_echo_test(); -int run_tsmf_test(); +int run_echo_test(void); +int run_tsmf_test(void); int main(int argc, char **argv) @@ -76,7 +76,7 @@ main(int argc, char **argv) * @return 0 on success, -1 on failure */ int -run_echo_test() +run_echo_test(void) { char out_buf[8192]; char in_buf[1700]; @@ -162,7 +162,7 @@ run_echo_test() } int -run_tsmf_test() +run_tsmf_test(void) { void *channel; |