From: Thomas Schwinge <thomas@codesourcery.com>
To: riku.voipio@iki.fi
Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, sw@weilnetz.de,
agraf@suse.de, qemu-devel@nongnu.org, paul@codesourcery.com,
j.schauer@email.de, Thomas Schwinge <thomas@codesourcery.com>
Subject: [Qemu-devel] [PATCH 1/4] util/envlist: Properly forward a callback's error in envlist_parse.
Date: Thu, 25 Apr 2013 17:06:42 +0200 [thread overview]
Message-ID: <1366902405-19117-1-git-send-email-thomas@codesourcery.com> (raw)
In-Reply-To: <20130425122252.GA4850@afflict.kos.to> <87k3nrq56l.fsf@schwinge.name>
Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
---
util/envlist.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git util/envlist.c util/envlist.c
index ebc06cf..cbbf7e5 100644
--- util/envlist.c
+++ util/envlist.c
@@ -109,9 +109,10 @@ envlist_parse(envlist_t *envlist, const char *env,
envvar = strtok_r(tmpenv, ",", &envsave);
while (envvar != NULL) {
- if ((*callback)(envlist, envvar) != 0) {
+ int err;
+ if ((err = (*callback)(envlist, envvar)) != 0) {
free(tmpenv);
- return (errno);
+ return (err);
}
envvar = strtok_r(NULL, ",", &envsave);
}
--
1.7.10.4
next prev parent reply other threads:[~2013-04-25 15:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-24 13:16 [Qemu-devel] Environment variables for user-mode QEMU Thomas Schwinge
2013-04-24 16:11 ` Thomas Schwinge
2013-04-25 15:06 ` Thomas Schwinge [this message]
2013-04-25 15:06 ` [Qemu-devel] [PATCH 2/4] linux-user: Use existing envlist_parse_set/envlist_parse_unset interface Thomas Schwinge
2013-04-25 15:06 ` [Qemu-devel] [PATCH 3/4] linux-user: Tell handler_arg_* which context they're invoked from Thomas Schwinge
2013-04-25 15:06 ` [Qemu-devel] [PATCH 4/4] linux-user: Restore original behavior of the -E and -U command-line options Thomas Schwinge
2013-04-25 15:52 ` Peter Maydell
2013-04-25 16:18 ` Thomas Schwinge
2013-04-25 16:21 ` Peter Maydell
2013-04-25 16:41 ` [Qemu-devel] [PATCH] qemu-doc: Option -ignore-environment removed Thomas Schwinge
2013-04-25 17:00 ` [Qemu-trivial] " Peter Maydell
2013-04-25 17:00 ` [Qemu-devel] " Peter Maydell
2013-04-26 10:52 ` Stefan Hajnoczi
2013-04-25 16:37 ` [Qemu-devel] [PATCH v2] linux-user: Restore original behavior of the -E and -U command-line options Thomas Schwinge
-- strict thread matches above, loose matches on Subject: below --
2013-04-25 12:22 [Qemu-devel] Environment variables for user-mode QEMU Riku Voipio
2013-04-30 12:17 ` Thomas Schwinge
2013-05-29 13:50 [Qemu-devel] [PATCH, resend] linux-user: environment variables Thomas Schwinge
2013-05-29 13:50 ` [Qemu-devel] [PATCH 1/4] util/envlist: Properly forward a callback's error in envlist_parse Thomas Schwinge
2013-06-27 17:36 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1366902405-19117-1-git-send-email-thomas@codesourcery.com \
--to=thomas@codesourcery.com \
--cc=agraf@suse.de \
--cc=aliguori@us.ibm.com \
--cc=j.schauer@email.de \
--cc=paul@codesourcery.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.