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 /sesman/libscp | |
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 'sesman/libscp')
-rw-r--r-- | sesman/libscp/libscp_init.c | 2 | ||||
-rw-r--r-- | sesman/libscp/libscp_init.h | 2 | ||||
-rw-r--r-- | sesman/libscp/libscp_session.c | 2 | ||||
-rw-r--r-- | sesman/libscp/libscp_session.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sesman/libscp/libscp_init.c b/sesman/libscp/libscp_init.c index 9d1e7308..11f0678e 100644 --- a/sesman/libscp/libscp_init.c +++ b/sesman/libscp/libscp_init.c @@ -30,7 +30,7 @@ /* server API */ int DEFAULT_CC -scp_init() +scp_init(void) { /* if (0 == log) diff --git a/sesman/libscp/libscp_init.h b/sesman/libscp/libscp_init.h index 91fb4090..7e74640c 100644 --- a/sesman/libscp/libscp_init.h +++ b/sesman/libscp/libscp_init.h @@ -41,6 +41,6 @@ * */ int DEFAULT_CC -scp_init(); +scp_init(void); #endif diff --git a/sesman/libscp/libscp_session.c b/sesman/libscp/libscp_session.c index 527d6d29..e932c82b 100644 --- a/sesman/libscp/libscp_session.c +++ b/sesman/libscp/libscp_session.c @@ -34,7 +34,7 @@ /*******************************************************************/ struct SCP_SESSION * -scp_session_create() +scp_session_create(void) { struct SCP_SESSION *s; diff --git a/sesman/libscp/libscp_session.h b/sesman/libscp/libscp_session.h index 9b92d3dd..eb902722 100644 --- a/sesman/libscp/libscp_session.h +++ b/sesman/libscp/libscp_session.h @@ -38,7 +38,7 @@ * */ struct SCP_SESSION* -scp_session_create(); +scp_session_create(void); int scp_session_set_type(struct SCP_SESSION* s, tui8 type); |