commit | 552375088a832fd5945ede92d01f98977b4eca13 | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Fri Jun 19 13:59:47 2015 +0200 |
committer | Markus Armbruster <armbru@redhat.com> | Thu Sep 10 13:48:05 2015 +0200 |
tree | 9eaf3d0a52722f0c97f55a93baeb42c0165abe85 | |
parent | fc04a730b7e60f4a62d6260d4eb9c537d1d3643f [diff] |
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>