aboutsummaryrefslogtreecommitdiff
path: root/net/tap-solaris.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-05-15 13:58:58 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2015-05-27 10:34:07 +0100
commit468dd82408e950d48def28f87e4cffabfd592ace (patch)
tree0c8ab84fa85e8914fffce19cc3a566940ce5abff /net/tap-solaris.c
parentac4fcf5639f44f7d863a35eaa2ad07ff31aabc01 (diff)
tap: Permit incremental conversion of tap_open() to Error
Convert the trivial ones immediately: tap-aix and tap-haiku. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1431691143-1015-11-git-send-email-armbru@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'net/tap-solaris.c')
-rw-r--r--net/tap-solaris.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tap-solaris.c b/net/tap-solaris.c
index 7839323e20..079046bab8 100644
--- a/net/tap-solaris.c
+++ b/net/tap-solaris.c
@@ -174,8 +174,9 @@ static int tap_alloc(char *dev, size_t dev_size)
}
int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
- int vnet_hdr_required, int mq_required)
+ int vnet_hdr_required, int mq_required, Error **errp)
{
+ /* FIXME error_setg(errp, ...) on failure */
char dev[10]="";
int fd;
if( (fd = tap_alloc(dev, sizeof(dev))) < 0 ){