qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Mahmoud Mandour
Subject: [PATCH 0/2] util/compatfd.c: Fixed styling and replaced malloc
Date: Mon, 15 Mar 2021 12:58:12 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]