Project

General

Profile

Bug #11219

mdb: smbsrv.c: error: comparison between pointer and integer

Added by Toomas Soome 17 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Build errors with NULL pointer:

    ../../../common/modules/smbsrv/smbsrv.c: In function 'smb_hash_walk_init':
    ../../../common/modules/smbsrv/smbsrv.c:1926:11: error: comparison between pointer and integer [-Werror]
      if (addr == NULL) {
               ^~
    ../../../common/modules/smbsrv/smbsrv.c: In function 'smb_hashstat_walk_init':
    ../../../common/modules/smbsrv/smbsrv.c:2015:11: error: comparison between pointer and integer [-Werror]
      if (addr == NULL) {
               ^~
    cc1: all warnings being treated as errors

Also available in: Atom PDF