From: Bert Vermeulen Date: Sun, 22 Jul 2012 13:32:35 +0000 (+0200) Subject: sr: cosmetic changes X-Git-Tag: dsupstream~770 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2ac2e629fc2ba2e89351d3ce337e0de9e034c540;p=libsigrok.git sr: cosmetic changes --- diff --git a/session.c b/session.c index 9818ee25..e4b8c1c2 100644 --- a/session.c +++ b/session.c @@ -456,14 +456,15 @@ static int _sr_session_source_add(GPollFD *pollfd, int timeout, /* Note: cb_data can be NULL, that's not a bug. */ - new_pollfds = g_try_realloc(session->pollfds, sizeof(GPollFD) * (session->num_sources + 1)); + new_pollfds = g_try_realloc(session->pollfds, + sizeof(GPollFD) * (session->num_sources + 1)); if (!new_pollfds) { sr_err("session: %s: new_pollfds malloc failed", __func__); return SR_ERR_MALLOC; } new_sources = g_try_realloc(session->sources, sizeof(struct source) * - (session->num_sources + 1)); + (session->num_sources + 1)); if (!new_sources) { sr_err("session: %s: new_sources malloc failed", __func__); return SR_ERR_MALLOC;