From 65f97deb6342310f212e88d7095d2b26cd53e89b Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Tue, 6 Nov 2012 14:27:34 +0100 Subject: [PATCH] nl_recv: fix indent style --- lib/nl.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/nl.c b/lib/nl.c index 161cfa5..57281ea 100644 --- a/lib/nl.c +++ b/lib/nl.c @@ -477,8 +477,8 @@ int nl_recv(struct nl_sock *sk, struct sockaddr_nl *nla, iov.iov_base = malloc(iov.iov_len); if (!iov.iov_base) { - retval = -NLE_NOMEM; - goto abort; + retval = -NLE_NOMEM; + goto abort; } if (creds && (sk->s_flags & NL_SOCK_PASSCRED)) { @@ -515,8 +515,8 @@ retry: msg.msg_controllen *= 2; tmp = realloc(msg.msg_control, msg.msg_controllen); if (!tmp) { - retval = -NLE_NOMEM; - goto abort; + retval = -NLE_NOMEM; + goto abort; } msg.msg_control = tmp; goto retry; @@ -530,8 +530,8 @@ retry: iov.iov_len = n; tmp = realloc(iov.iov_base, iov.iov_len); if (!tmp) { - retval = -NLE_NOMEM; - goto abort; + retval = -NLE_NOMEM; + goto abort; } iov.iov_base = tmp; flags = 0; @@ -572,13 +572,15 @@ abort: free(msg.msg_control); if (retval <= 0) { - free(iov.iov_base); iov.iov_base = NULL; - free(tmpcreds); tmpcreds = NULL; + free(iov.iov_base); + iov.iov_base = NULL; + free(tmpcreds); + tmpcreds = NULL; } else *buf = iov.iov_base; if (creds) - *creds = tmpcreds; + *creds = tmpcreds; return retval; }