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

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

 



On Fri, Oct 22, 2021 at 8:09 AM Xiao Ni <xni@xxxxxxxxxx> wrote:
> >
> > 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




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux