From 4b335ab464159f58fc090e9d03a8183fbd31c04a Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 26 Jan 2013 18:36:40 -0800 Subject: [PATCH] make function static --- xwords4/linux/linuxmain.c | 4 +++- xwords4/linux/linuxmain.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xwords4/linux/linuxmain.c b/xwords4/linux/linuxmain.c index 018e0b53e..8d5a28b99 100644 --- a/xwords4/linux/linuxmain.c +++ b/xwords4/linux/linuxmain.c @@ -79,6 +79,8 @@ #define DEFAULT_PORT 10997 #define DEFAULT_LISTEN_PORT 4998 +static int blocking_read( int fd, unsigned char* buf, int len ); + XP_Bool file_exists( const char* fileName ) { @@ -1071,7 +1073,7 @@ linux_close_socket( CommonGlobals* cGlobals ) close( socket ); } -int +static int blocking_read( int fd, unsigned char* buf, const int len ) { int nRead = 0; diff --git a/xwords4/linux/linuxmain.h b/xwords4/linux/linuxmain.h index 86bdedd72..88a9681c4 100644 --- a/xwords4/linux/linuxmain.h +++ b/xwords4/linux/linuxmain.h @@ -73,8 +73,6 @@ XP_Bool getDictPath( const LaunchParams *params, const char* name, GSList* listDicts( const LaunchParams *params ); void saveGame( CommonGlobals* cGlobals ); -int blocking_read( int fd, unsigned char* buf, int len ); - void linux_close_socket( CommonGlobals* cGlobals ); #ifdef KEYBOARD_NAV