Re: [PATCH 4/5] misc: fix xalloc.h related exit codes

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

 




On 06/22/2017 04:43 PM, Ruediger Meier wrote:
> From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>
> 
> Found by:
> 
> grep -L "XALLOC_EXIT_CODE" $(grep -l "xalloc\.h" \
>     $(git grep -l "_EX_\|FINDFS_\|BLKID_EXIT\|EX_USAGE" -- "*.c"))
> 
> Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>
> ---
>  disk-utils/mkfs.minix.c | 2 ++
>  misc-utils/blkid.c      | 2 ++
>  sys-utils/hwclock.c     | 1 +
>  sys-utils/mount.c       | 4 +++-
>  sys-utils/umount.c      | 2 ++
>  5 files changed, 10 insertions(+), 1 deletion(-)
> 

 --- >8

> diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
> index 325106a..5c34144 100644
> --- a/sys-utils/hwclock.c
> +++ b/sys-utils/hwclock.c
> @@ -71,6 +71,7 @@
>  #include <unistd.h>
>  
>  #define OPTUTILS_EXIT_CODE EX_USAGE
> +#define XALLOC_EXIT_CODE EX_OSERR

I think the default EXIT_FAILURE is fine for this case.

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux