diff options
author | 2020-09-03 04:19:53 +0000 | |
---|---|---|
committer | 2020-09-03 04:19:53 +0000 | |
commit | 7c730607236414952d5ac3fe21618acd39e9ded2 (patch) | |
tree | 181cd97f0270cf9e1a3db6bafafc5ebb5ede5247 /sys/dev/softraid.c | |
parent | Add #define SID_SCSI2_RESPONSE 0x2 to allow elimination of another bunch of (diff) | |
download | wireguard-openbsd-7c730607236414952d5ac3fe21618acd39e9ded2.tar.xz wireguard-openbsd-7c730607236414952d5ac3fe21618acd39e9ded2.zip |
Switch use of '\0' to NULL
Fix a clang 10 warning about comparing a pointer to a null character. The
condition "if ((s = symnam[i]) == '\0')" used to be "if (s = symnam[i])"
and the incorrect spelling of NULL was chosen in a -Wall cleanup 19 years
ago (-r 1.6). Upstream uses a naked 0 instead of NULL, so does NetBSD.
ok martijn millert
Diffstat (limited to 'sys/dev/softraid.c')
0 files changed, 0 insertions, 0 deletions