]> granicus.if.org Git - libnl/commitdiff
nl_recv: fix indent style
authorThomas Graf <tgraf@redhat.com>
Tue, 6 Nov 2012 13:27:34 +0000 (14:27 +0100)
committerThomas Graf <tgraf@redhat.com>
Tue, 6 Nov 2012 13:27:34 +0000 (14:27 +0100)
lib/nl.c

index 161cfa5350a15b50b4f3d9bd44499b9b34827b03..57281ea23868a8e5a3a3982e88ec6519bdb44553 100644 (file)
--- 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;
 }