From 9b525ba69fff75f3a1cbc755b8da285d1f7286cf Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 17 Sep 2013 11:56:34 +0200 Subject: silence several compiler warnings --- src/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index de5e5cc..32c6a2b 100644 --- a/src/main.c +++ b/src/main.c @@ -64,7 +64,7 @@ static int daemon_pipe; static int report_to_parent = 0; -int create_socket(void) { +static int create_socket(void) { struct sockaddr_un bind_addr; int listenfd; @@ -98,7 +98,7 @@ int create_socket(void) { return listenfd; } -void handle_signal(int sig) +static void handle_signal(int sig) { if (sig != SIGUSR1 && sig != SIGUSR2) { usbmuxd_log(LL_NOTICE,"Caught signal %d, exiting", sig); @@ -124,7 +124,7 @@ void handle_signal(int sig) } } -void set_signal_handlers(void) +static void set_signal_handlers(void) { struct sigaction sa; sigset_t set; @@ -162,7 +162,7 @@ static int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout } #endif -int main_loop(int listenfd) +static int main_loop(int listenfd) { int to, cnt, i, dto; struct fdlist pollfds; @@ -519,7 +519,7 @@ int main(int argc, char *argv[]) goto terminate; } sprintf(pids, "%d", getpid()); - if ((res = write(lfd, pids, strlen(pids))) != strlen(pids)) { + if ((size_t)(res = write(lfd, pids, strlen(pids))) != strlen(pids)) { usbmuxd_log(LL_FATAL, "Could not write pidfile!"); if(res >= 0) res = -2; -- cgit v1.1-32-gdbae