qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] util/compatfd.c: Fixed styling and replaced malloc
@ 2021-03-15 10:58 Mahmoud Mandour
  2021-03-15 10:58 ` [PATCH 1/2] util/compatfd.c: Fixed style issues Mahmoud Mandour
  2021-03-15 10:58 ` [PATCH 2/2] util/compatfd.c: Replaced a malloc call with g_malloc Mahmoud Mandour
  0 siblings, 2 replies; 9+ messages in thread
From: Mahmoud Mandour @ 2021-03-15 10:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: Mahmoud Mandour

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-03-15 15:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-15 10:58 [PATCH 0/2] util/compatfd.c: Fixed styling and replaced malloc Mahmoud Mandour
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é

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).