11454 smbclnt: NULL pointer errors
Review Request #2172 — Created July 11, 2019 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
11454 | |
bef9cac... | |
Reviewers | |
general | |
In file included from ../../common/sys/param.h:48:0, from ../../common/fs/smbclnt/smbfs/smbfs_smb1.c:40: ../../common/fs/smbclnt/smbfs/smbfs_smb1.c: In function 'smbfs_smb1_get_streamin fo': ../../common/sys/null.h:28:14: error: passing argument 5 of 'smbfs_fullpath' mak es integer from pointer without a cast [-Werror=int-conversion] #define NULL ((void *)0) ^ ../../common/fs/smbclnt/smbfs/smbfs_smb1.c:783:45: note: in expansion of macro ' NULL' error = smbfs_fullpath(mbp, vcp, np, NULL, NULL, 0); ^~~~ In file included from ../../common/fs/smbclnt/smbfs/smbfs_smb1.c:57:0: ../../common/fs/smbclnt/smbfs/smbfs_subr.h:309:6: note: expected 'int' but argum ent is of type 'void *' int smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors
Change Summary:
drop cstyle bits
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+1 -1) |