Thread (5 messages) flat view 5 messages, 3 authors, 2021-11-02

Re: [PATCH 1/1] mdadm/Detail: Can't show container name correctly when unpluging disks

From: Xiao Ni <hidden>
Date: 2021-10-22 00:38:33

On Fri, Oct 22, 2021 at 8:09 AM Xiao Ni [off-list ref] wrote:
quoted
using true/false will require to add #include <stdbool.h>.
Jes suggests to use meaningful return values. This is only
suggestion so you can ignore it and use 0 and 1.
<stdbool.h> is a c++ header and it needs libstdc++-devel, I don't want
to include one package only for using true/false.
Hi all

Do you think the method is better?

typedef int bool
#define true 1
#define false 0

So we don't need to inlcuce <stdboo.h> and we can use true/false too.
If we include <stdbool.h>, it needs to add the corresponding package in the spec
file too to resolve dependency problems.

Regards
Xiao
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help