]> sigrok.org Git - libsigrok.git/commitdiff
sr: cosmetic changes
authorBert Vermeulen <redacted>
Sun, 22 Jul 2012 13:32:35 +0000 (15:32 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 09:28:59 +0000 (11:28 +0200)
session.c

index 9818ee25eef965f6647bd48219d659602a120377..e4b8c1c24d7901feb3c85573338af018c8194528 100644 (file)
--- 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;