aboutsummaryrefslogtreecommitdiff
path: root/lib/libcam
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-03-13 02:12:33 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-03-13 02:12:33 +0000
commitc876175c6160f55a95bd3b0bd19bf11f3df4f4ee (patch)
tree49bd7eef2f750a3f125e499882806b8a021734c8 /lib/libcam
parent12211016f5930e8b6f21c627bf37f60bc835562a (diff)
downloadsrc-c876175c6160f55a95bd3b0bd19bf11f3df4f4ee.tar.gz
src-c876175c6160f55a95bd3b0bd19bf11f3df4f4ee.zip
lib/libcam/cam.3: note that cam_freeccb(3) with ccb == NULL is a no-op
This allows me to accurately test this scenario, and for others to rely on the behavior, instead of relying on knowledge obtained via code inspection. Wording borrowed from free(3). MFC after: 1 week Requested by: ken (D9928) Reviewed by: imp Sponsored by: Dell EMC Isilon Differential Revision: D9969
Notes
Notes: svn path=/head/; revision=315186
Diffstat (limited to 'lib/libcam')
-rw-r--r--lib/libcam/cam.35
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libcam/cam.3 b/lib/libcam/cam.3
index fbcb016ff482..8accf63c746f 100644
--- a/lib/libcam/cam.3
+++ b/lib/libcam/cam.3
@@ -302,6 +302,11 @@ structure.
.Fn cam_freeccb
frees CCBs allocated by
.Fn cam_getccb .
+If
+.Va ccb
+is
+.Dv NULL ,
+no action is taken.
.Pp
.Fn cam_path_string
takes as arguments a