From: Mahmoud Mandour <ma.mandourr@gmail.com>
To: qemu-devel@nongnu.org
Cc: Mahmoud Mandour <ma.mandourr@gmail.com>
Subject: [PATCH 0/2] util/compatfd.c: Fixed styling and replaced malloc
Date: Mon, 15 Mar 2021 12:58:12 +0200 [thread overview]
Message-ID: <20210315105814.5188-1-ma.mandourr@gmail.com> (raw)
In this small series, I fix two styling issues that were causing
errors when the checkpatch.pl scritp was run against the
file util/compatfd.c.
Also, I replace a call to malloc() and its respective call
to free() with GLib's allocation and deallocation.
Used g_malloc() because the allocation is already small and its better
if the system aborts on failure of such small allocations.
Mahmoud Mandour (2):
util/compatfd.c: Fixed style issues
util/compatfd.c: Replaced a malloc call with g_malloc.
util/compatfd.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
--
2.25.1
next reply other threads:[~2021-03-15 11:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-15 10:58 Mahmoud Mandour [this message]
2021-03-15 10:58 ` [PATCH 1/2] util/compatfd.c: Fixed style issues Mahmoud Mandour
2021-03-15 14:51 ` Thomas Huth
2021-03-15 10:58 ` [PATCH 2/2] util/compatfd.c: Replaced a malloc call with g_malloc Mahmoud Mandour
2021-03-15 11:13 ` Philippe Mathieu-Daudé
2021-03-15 11:30 ` Mahmoud Mandour
2021-03-15 14:25 ` Markus Armbruster
2021-03-15 14:53 ` Thomas Huth
2021-03-15 15:13 ` Philippe Mathieu-Daudé
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=20210315105814.5188-1-ma.mandourr@gmail.com \
--to=ma.mandourr@gmail.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).