mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Use NULL instead of 0 for pointer comparison.
MFC after: 4 weeks
This commit is contained in:
parent
6cd99ae86d
commit
ff34412a50
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298030
@ -132,7 +132,7 @@ m_xword(m, k, err)
|
||||
return EXTRACT_LONG(cp);
|
||||
}
|
||||
m0 = m->m_next;
|
||||
if (m0 == 0 || M_LEN(m0) + len - k < 4)
|
||||
if (m0 == NULL || M_LEN(m0) + len - k < 4)
|
||||
goto bad;
|
||||
*err = 0;
|
||||
np = MTOD(m0, u_char *);
|
||||
@ -168,7 +168,7 @@ m_xhalf(m, k, err)
|
||||
return EXTRACT_SHORT(cp);
|
||||
}
|
||||
m0 = m->m_next;
|
||||
if (m0 == 0)
|
||||
if (m0 == NULL)
|
||||
goto bad;
|
||||
*err = 0;
|
||||
return (cp[0] << 8) | MTOD(m0, u_char *)[0];
|
||||
@ -205,7 +205,7 @@ bpf_filter(pc, p, wirelen, buflen)
|
||||
} else
|
||||
m = NULL;
|
||||
|
||||
if (pc == 0)
|
||||
if (pc == NULL)
|
||||
/*
|
||||
* No filter means accept all.
|
||||
*/
|
||||
|
@ -738,7 +738,7 @@ ipf_fastroute(m0, mpp, fin, fdp)
|
||||
*/
|
||||
if (M_WRITABLE(m) == 0) {
|
||||
m0 = m_dup(m, M_NOWAIT);
|
||||
if (m0 != 0) {
|
||||
if (m0 != NULL) {
|
||||
FREE_MB_T(m);
|
||||
m = m0;
|
||||
*mpp = m;
|
||||
@ -885,7 +885,7 @@ ipf_fastroute(m0, mpp, fin, fdp)
|
||||
#else
|
||||
MGET(m, M_NOWAIT, MT_HEADER);
|
||||
#endif
|
||||
if (m == 0) {
|
||||
if (m == NULL) {
|
||||
m = m0;
|
||||
error = ENOBUFS;
|
||||
goto bad;
|
||||
|
Loading…
Reference in New Issue
Block a user