error: De-duplicate code creating Error objects
commit552375088a832fd5945ede92d01f98977b4eca13
authorMarkus Armbruster <armbru@redhat.com>
Fri, 19 Jun 2015 11:59:47 +0000 (19 13:59 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 10 Sep 2015 11:48:05 +0000 (10 13:48 +0200)
tree9eaf3d0a52722f0c97f55a93baeb42c0165abe85
parentfc04a730b7e60f4a62d6260d4eb9c537d1d3643f
error: De-duplicate code creating Error objects

Duplicated when commit 680d16d added error_set_errno(), and again when
commit 20840d4 added error_set_win32().

Make the original copy in error_set() reusable by factoring out
error_setv(), then rewrite error_set_errno() and error_set_win32() on
top of it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
util/error.c