bug-gzip
[Top][All Lists]
Advanced

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

bug#39764: [PATCH] IBM Z DFLTCC: add STREQ definition


From: Ilya Leoshkevich
Subject: bug#39764: [PATCH] IBM Z DFLTCC: add STREQ definition
Date: Fri, 29 May 2020 12:22:39 +0200
User-agent: Evolution 3.34.4 (3.34.4-1.fc31)

On Mon, 2020-02-24 at 10:36 +0100, Ilya Leoshkevich wrote:
> Commit 81c9fe4d0986 replaced !strcmp with STREQ in order to be
> compliant
> with the gnulib linter, however, gnulib does not provide STREQ!
> 
> Quite a few gnulib .c files contain private definitions of STREQ.
> This
> patch just goes with the flow and does the same in dfltcc.c.
> ---
>  dfltcc.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/dfltcc.c b/dfltcc.c
> index 1d6d74c..432c68c 100644
> --- a/dfltcc.c
> +++ b/dfltcc.c
> @@ -72,6 +72,8 @@ typedef enum
>  
>  #define MAX(a, b) ((a) > (b) ? (a) : (b))
>  
> +#define STREQ(a, b) (strcmp (a, b) == 0)
> +
>  struct dfltcc_qaf_param
>  {
>    char fns[16];

Gentle ping.






reply via email to

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