From 8792a8a05c287e2a3b3cfac47631ee30a08e9f8c Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Thu, 30 May 2019 12:10:58 -0400 Subject: [PATCH] Mark fun as static --- src/xmppipe.h | 1 - src/xmppipe_event.c | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xmppipe.h b/src/xmppipe.h index 2000234..c5c360f 100644 --- a/src/xmppipe.h +++ b/src/xmppipe.h @@ -102,7 +102,6 @@ typedef struct { } xmppipe_state_t; void event_loop(xmppipe_state_t *state); -int handle_stdin(xmppipe_state_t *state, int fd, char *buf, size_t len); /* handlers */ int handle_message(xmpp_conn_t *const, xmpp_stanza_t *const, void *const); diff --git a/src/xmppipe_event.c b/src/xmppipe_event.c index 6502f3b..6d7931e 100644 --- a/src/xmppipe_event.c +++ b/src/xmppipe_event.c @@ -18,6 +18,8 @@ #include #include +static int handle_stdin(xmppipe_state_t *state, int fd, char *buf, size_t len); + void event_loop(xmppipe_state_t *state) { int fd = STDIN_FILENO; int eof = 0; @@ -101,7 +103,7 @@ XMPPIPE_EXIT: return; } -int handle_stdin(xmppipe_state_t *state, int fd, char *buf, size_t len) { +static int handle_stdin(xmppipe_state_t *state, int fd, char *buf, size_t len) { fd_set rfds; struct timeval tv = {0}; ssize_t n = 0;