mirror: Update signature of mirror_clip_sectors()
commit931e52607fbecb40543b298d7ee8740d0e4af3ef
authorEric Blake <eblake@redhat.com>
Fri, 7 Jul 2017 12:44:48 +0000 (7 07:44 -0500)
committerKevin Wolf <kwolf@redhat.com>
Mon, 10 Jul 2017 11:18:06 +0000 (10 13:18 +0200)
tree0ccf6043402e0a5510a14e1fd3ebad8b4441790e
parente6f2419389a841260e0323ae72751ab489ec6dcc
mirror: Update signature of mirror_clip_sectors()

Rather than having a void function that modifies its input
in-place as the output, change the signature to reduce a layer
of indirection and return the result.

Suggested-by: John Snow <jsnow@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/mirror.c