Skip to content

util/compatfd.c: Fixed styling and replaced malloc

Mahmoud Mandour qemu-devel qemu-trivial 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2util/compatfd.c: Fixed style issuesutil/compatfd.c+3 -31 reply
2/2util/compatfd.c: Replaced a malloc call with g_malloc.util/compatfd.c+2 -65 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchThomas Huth
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] util/compatfd.c: Fixed styling and replaced malloc

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(-)
Signature · 1 line
2.25.1