From 1861be0baf8792e48e0bc009a20074210b2c1370 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 7 Aug 2013 00:34:06 +0200 Subject: [PATCH] Make sr_session_iteration() static. This function is not used outside of session.c at the moment, so make it static for now. --- libsigrok-internal.h | 1 - session.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libsigrok-internal.h b/libsigrok-internal.h index 453c6583..5fc0fbfa 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -116,7 +116,6 @@ SR_PRIV int sr_source_add(int fd, int events, int timeout, /*--- session.c -------------------------------------------------------------*/ -SR_PRIV int sr_session_iteration(gboolean block); SR_PRIV int sr_session_send(const struct sr_dev_inst *sdi, const struct sr_datafeed_packet *packet); SR_PRIV int sr_session_stop_sync(void); diff --git a/session.c b/session.c index 514b620a..15be92c8 100644 --- a/session.c +++ b/session.c @@ -248,7 +248,7 @@ SR_API int sr_session_datafeed_callback_add(sr_datafeed_callback_t cb, void *cb_ * * @return SR_OK upon success, SR_ERR on errors. */ -SR_PRIV int sr_session_iteration(gboolean block) +static int sr_session_iteration(gboolean block) { unsigned int i; int ret;