diff options
author | Mao Zhongyi <maozy.fnst@cn.fujitsu.com> | 2017-09-04 22:35:39 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2017-09-08 08:17:37 +0800 |
commit | bcd4dfd6852361361d6622de7e67f94e2b475d27 (patch) | |
tree | 952e826defc1dcfa8631abd87393f5f3884d51ac /include | |
parent | c37f0bb1d0d24e3a6b5f4659bb305913dcb798a6 (diff) | |
download | qemu-bcd4dfd6852361361d6622de7e67f94e2b475d27.zip qemu-bcd4dfd6852361361d6622de7e67f94e2b475d27.tar.gz qemu-bcd4dfd6852361361d6622de7e67f94e2b475d27.tar.bz2 |
net/net: Convert parse_host_port() to Error
Cc: berrange@redhat.com
Cc: kraxel@redhat.com
Cc: pbonzini@redhat.com
Cc: jasowang@redhat.com
Cc: armbru@redhat.com
Cc: eblake@redhat.com
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/sockets.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h index 639cc07..4f7311b 100644 --- a/include/qemu/sockets.h +++ b/include/qemu/sockets.h @@ -45,7 +45,8 @@ void socket_listen_cleanup(int fd, Error **errp); int socket_dgram(SocketAddress *remote, SocketAddress *local, Error **errp); /* Old, ipv4 only bits. Don't use for new code. */ -int parse_host_port(struct sockaddr_in *saddr, const char *str); +int parse_host_port(struct sockaddr_in *saddr, const char *str, + Error **errp); int socket_init(void); /** |