Re: [PATCH] Fix compiler error in tgtd.c call_program

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

 



On Sat,  3 Jun 2017 14:33:59 -0700
Andy Grover <agrover@xxxxxxxxxx> wrote:

> Using a newer version of gcc, we see an error:
> 
> tgtd.c:313:14: error: comparison between pointer and zero character
>  constant [-Werror=pointer-compare]
>    while (pos != '\0')
>               ^~
> tgtd.c:313:10: note: did you mean to dereference the pointer?
>    while (pos != '\0')
>           ^
> I think gcc is right, so deref pos.
> 
> Signed-off-by: Andy Grover <agrover@xxxxxxxxxx>
> ---
>  usr/tgtd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks good, applied. Thanks!
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux