Use .Dv when referencing NULL

This is the correct markup macro, as opposed to .Va (variable names)

While here, annotate several bare references to `NULL` with .Dv.

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-03-12 05:07:33 +00:00
parent f618201314
commit 88cbf2928f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315132

View File

@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd October 10, 1998
.Dd March 11, 2017
.Dt CAM 3
.Os
.Sh NAME
@ -208,7 +208,7 @@ structure.
If the
.Ar device
argument is
.Va NULL ,
.Dv NULL ,
.Fn cam_open_spec_device
will allocate space for the
.Va cam_device
@ -258,7 +258,9 @@ argument, as with
.Fn cam_open_spec_device
and
.Fn cam_open_btl ,
should be NULL if the user wants the CAM library to allocate space for the
should be
.Dv NULL
if the user wants the CAM library to allocate space for the
.Va cam_device
structure.
.Fn cam_close_device
@ -365,11 +367,14 @@ and
.Fn cam_open_pass
return a pointer to a
.Va cam_device
structure, or NULL if there was an error.
structure, or
.Dv NULL
if there was an error.
.Pp
.Fn cam_getccb
returns an allocated and partially initialized CCB, or NULL if allocation
of the CCB failed.
returns an allocated and partially initialized CCB, or
.Dv NULL
if allocation of the CCB failed.
.Pp
.Fn cam_send_ccb
returns a value of -1 if an error occurred, and
@ -386,7 +391,9 @@ that is passed into
.Fn cam_device_dup
returns a copy of the
.Va device
passed in, or NULL if an error occurred.
passed in, or
.Dv NULL
if an error occurred.
.Pp
.Fn cam_get_device
returns 0 for success, and -1 to indicate failure.