diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-08-04 15:24:23 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-08-04 15:24:23 +0200 |
commit | 3d7998a44299c69e7d721c4c5a20ddc32cec562b (patch) | |
tree | 1cfae4f8e9e95a5ceaab8cbea96fef2afd9b62bf /libwaitress/src | |
parent | 98071f0c542a89379c21ba69ea14a5c3f4b88b61 (diff) | |
download | pianobar-windows-3d7998a44299c69e7d721c4c5a20ddc32cec562b.tar.gz pianobar-windows-3d7998a44299c69e7d721c4c5a20ddc32cec562b.tar.bz2 pianobar-windows-3d7998a44299c69e7d721c4c5a20ddc32cec562b.zip |
Use "static" keyword for functions
Diffstat (limited to 'libwaitress/src')
-rw-r--r-- | libwaitress/src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libwaitress/src/main.c b/libwaitress/src/main.c index a54c864..dbf1a74 100644 --- a/libwaitress/src/main.c +++ b/libwaitress/src/main.c @@ -54,7 +54,7 @@ inline void WaitressFree (WaitressHandle_t *waith) { * @param Waitress handle * @return true|false */ -inline char WaitressProxyEnabled (const WaitressHandle_t *waith) { +static inline char WaitressProxyEnabled (const WaitressHandle_t *waith) { return *waith->proxyHost != '\0' && *waith->proxyPort != '\0'; } @@ -178,7 +178,7 @@ inline void WaitressSetHPP (WaitressHandle_t *waith, const char *host, * @param data size * @param buffer structure */ -char WaitressFetchBufCb (void *recvData, size_t recvDataSize, void *extraData) { +static char WaitressFetchBufCb (void *recvData, size_t recvDataSize, void *extraData) { char *recvBytes = recvData; WaitressFetchBufCbBuffer_t *buffer = extraData; @@ -222,7 +222,7 @@ WaitressReturn_t WaitressFetchBuf (WaitressHandle_t *waith, char *buf, * @param timeout (microseconds) * @return WAITRESS_RET_OK, WAITRESS_RET_TIMEOUT or WAITRESS_RET_ERR */ -WaitressReturn_t WaitressPollWrite (int sockfd, const char *buf, size_t count, +static WaitressReturn_t WaitressPollWrite (int sockfd, const char *buf, size_t count, struct pollfd *sockpoll, int timeout) { int pollres = -1; @@ -248,7 +248,7 @@ WaitressReturn_t WaitressPollWrite (int sockfd, const char *buf, size_t count, * @param read () return value/written bytes * @return WAITRESS_RET_OK, WAITRESS_RET_TIMEOUT, WAITRESS_RET_ERR */ -WaitressReturn_t WaitressPollRead (int sockfd, char *buf, size_t count, +static WaitressReturn_t WaitressPollRead (int sockfd, char *buf, size_t count, struct pollfd *sockpoll, int timeout, ssize_t *retSize) { int pollres = -1; |