]> git.ipfire.org Git - thirdparty/grub.git/commit
util: Ignore return value for grub_util_mkdir() on all platforms
authorDarren Kenny <darren.kenny@oracle.com>
Tue, 9 Aug 2022 13:29:04 +0000 (13:29 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 19 Aug 2022 19:38:02 +0000 (21:38 +0200)
commitd22cbe0decf54c6a248250b869ddb169babceb60
treeef4611b8b19439898ec95f0e4de7c9e8613d8e87
parent0b442440256400231da1599d5cc5fe141dff2d53
util: Ignore return value for grub_util_mkdir() on all platforms

Coverity signaled 2 issues where the return value of grub_util_mkdir()
was not being tested.

The Windows variant of this code defines the function as having no
return value (void), but the UNIX variants all are mapped using a macro
to the libc mkdir() function, which returns an int value.

To be consistent, the mapping should cast to void to for these too.

Fixes: CID 73583
Fixes: CID 73617
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/osdep/hostfile_aros.h
include/grub/osdep/hostfile_unix.h