libzfs_sendrecv: Style pass on send_iterate_fs
authorRyan Moeller <freqlabs@FreeBSD.org>
Tue, 27 Jul 2021 16:20:15 +0000 (16:20 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 2 Feb 2022 01:02:33 +0000 (17:02 -0800)
commit0c1c746a748d9a0ace7900e539b15f4b48bf933c
treefa415affec155127352d7b6c12f09fa3f49e3f5e
parent2b6b7111f4bae3fc84e42568d591669a6d8a1e12
libzfs_sendrecv: Style pass on send_iterate_fs

* Capitalize and punctuate complete sentences in comments.
* Separate out a group of locals to add a comment on their purpose.
* Remove unnecessary line wrapping.
* Make it clear that dds_origin is a string by using explicit character
  comparison to check for an empty string, rather than implictly
  treating it as a boolean.
* Reorganize manipulation of props and holds nvlists to improve
  clarity.
* There's no need to initialize the snapname buffer with zeros, we're
  immediately overwriting it.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #12967
lib/libzfs/libzfs_sendrecv.c