[X2Go-Commits] [x2gokdrive] 03/12: x2gokdrive*.{c|h}: Use new-style function definitions for parameter-less functions.

git-admin at x2go.org git-admin at x2go.org
Tue Jul 16 17:09:20 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gokdrive.

commit 12294a93154d9c1bff8485f3d7ba42203ae9fc1a
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Jul 16 14:13:05 2019 +0200

    x2gokdrive*.{c|h}: Use new-style function definitions for parameter-less functions.
---
 x2gokdriveremote.c    | 24 ++++++++++++------------
 x2gokdriveremote.h    | 10 +++++-----
 x2gokdriveselection.c |  2 +-
 3 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/x2gokdriveremote.c b/x2gokdriveremote.c
index cdc79ee..d638d48 100644
--- a/x2gokdriveremote.c
+++ b/x2gokdriveremote.c
@@ -42,13 +42,13 @@ static RemoteHostVars remoteVars;
 static BOOL remoteInitialized=FALSE;
 
 
-void remote_selection_init()
+void remote_selection_init(void)
 {
     selection_init(&remoteVars);
 }
 
 
-void restartTimerOnInit()
+void restartTimerOnInit(void)
 {
     if(remoteInitialized)
     {
@@ -62,7 +62,7 @@ void restartTimerOnInit()
 }
 
 
-void cancelThreadBeforeStart()
+void cancelThreadBeforeStart(void)
 {
     shutdown(remoteVars.serversock, SHUT_RDWR);
     close(remoteVars.serversock);
@@ -115,7 +115,7 @@ void remote_handle_signal(int signum)
 }
 
 
-int queue_elements()
+int queue_elements(void)
 {
     int elems=0;
     struct sendqueue_element* current=remoteVars.first_sendqueue_element;
@@ -169,7 +169,7 @@ void addCursorToQueue(struct cursorFrame* cframe)
     }
 }
 
-void freeCursors()
+void freeCursors(void)
 {
     struct sentCursor* cur=remoteVars.sentCursorsHead;
     while(cur)
@@ -411,7 +411,7 @@ int32_t send_frame(u_int32_t width, uint32_t height, uint32_t x, uint32_t y, uin
     return total;
 }
 
-int send_deleted_elements()
+int send_deleted_elements(void)
 {
     unsigned char buffer[56];
     *((uint32_t*)buffer)=DELETED;
@@ -454,7 +454,7 @@ int send_deleted_elements()
     return sent;
 }
 
-int send_deleted_cursors()
+int send_deleted_cursors(void)
 {
     unsigned char buffer[56];
     *((uint32_t*)buffer)=DELETEDCURSOR;
@@ -1593,7 +1593,7 @@ void *send_frame_thread (void *threadid)
 }
 
 //warning! sendqueue_mutex should be locked by thread calling this function!
-void clear_send_queue()
+void clear_send_queue(void)
 {
     struct sendqueue_element* current=remoteVars.first_sendqueue_element;
     while(current)
@@ -1728,7 +1728,7 @@ void setAgentState(int state)
     remoteVars.agentState=state;
 }
 
-void disconnect_client()
+void disconnect_client(void)
 {
     EPHYR_DBG("DISCONNECTING CLIENT, DOING SOME CLEAN UP");
     pthread_mutex_lock(&remoteVars.sendqueue_mutex);
@@ -2048,7 +2048,7 @@ unsigned int checkSocketConnection(OsTimerPtr timer, CARD32 time, void* args)
     return 0;
 }
 
-void open_socket()
+void open_socket(void)
 {
     ssize_t size;
     const int y = 1;
@@ -2216,7 +2216,7 @@ void processConfigFileSetting(char* key, char* value)
     }
 }
 
-void readOptionsFromFile()
+void readOptionsFromFile(void)
 {
     FILE *ptr=fopen(remoteVars.optionsFile,"rt");
     if(ptr)
@@ -2845,7 +2845,7 @@ void add_frame(uint32_t width, uint32_t height, int32_t x, int32_t y, uint32_t c
 }
 
 
-void remote_send_main_image()
+void remote_send_main_image(void)
 {
     add_frame(0, 0, 0, 0, 0, 0);
 }
diff --git a/x2gokdriveremote.h b/x2gokdriveremote.h
index a14a4f4..8f5dab1 100644
--- a/x2gokdriveremote.h
+++ b/x2gokdriveremote.h
@@ -385,12 +385,12 @@ void clear_frame_cache(uint32_t max_elements);
 uint32_t calculate_crc(uint32_t width, uint32_t height, int32_t dx, int32_t dy);
 
 
-void readOptionsFromFile();
+void readOptionsFromFile(void);
 unsigned int checkSocketConnection(OsTimerPtr timer, CARD32 time, void* args);
 
-void restartTimerOnInit();
+void restartTimerOnInit(void);
 
-void open_socket();
+void open_socket(void);
 
 void setAgentState(int state);
 
@@ -416,7 +416,7 @@ void add_frame(uint32_t width, uint32_t height, int32_t x, int32_t y, uint32_t c
 
 
 
-void disconnect_client();
+void disconnect_client(void);
 
 
 void remote_handle_signal(int signum);
@@ -425,7 +425,7 @@ void remote_handle_signal(int signum);
 void remote_sendCursor(CursorPtr cursor);
 
 void remote_removeCursor(uint32_t serialNumber);
-void remote_send_main_image();
+void remote_send_main_image(void);
 
 
 int remote_init(void);
diff --git a/x2gokdriveselection.c b/x2gokdriveselection.c
index adb3095..75eccf2 100644
--- a/x2gokdriveselection.c
+++ b/x2gokdriveselection.c
@@ -655,7 +655,7 @@ void selection_init(struct RemoteHostVars *obj)
 }
 
 
-void install_selection_callbacks()
+void install_selection_callbacks(void)
 {
     if(remoteVars->selstruct.selectionMode == CLIP_CLIENT || remoteVars->selstruct.selectionMode == CLIP_NONE)
     {

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdrive.git


More information about the x2go-commits mailing list