summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@redhat.com>2012-11-06 14:27:34 +0100
committerThomas Graf <tgraf@redhat.com>2012-11-06 14:27:34 +0100
commit65f97deb6342310f212e88d7095d2b26cd53e89b (patch)
tree30131aca4ebd166bf2ce85b71fd6be5f5dadb987
parent220d8e141d22e6ef73b8b6b4b061a46f6c88c061 (diff)
downloadlibnl-65f97deb6342310f212e88d7095d2b26cd53e89b.tar.gz
nl_recv: fix indent style
-rw-r--r--lib/nl.c20
1 files 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;
}