diff options
| author | Stefano Garzarella <sgarzare@redhat.com> | 2019-05-17 15:47:48 +0200 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2019-07-02 10:21:06 +0800 |
| commit | 4623027d866d56677b70449837accf07df693f4d (patch) | |
| tree | 6aba0ab893f11e5f99abc5d64155c8eebe56309d /net/net.c | |
| parent | add993477bb2bc17e547912c6530745d1dd58ddc (diff) | |
| download | focaccia-qemu-4623027d866d56677b70449837accf07df693f4d.tar.gz focaccia-qemu-4623027d866d56677b70449837accf07df693f4d.zip | |
net: remove unused get_str_sep() function
Since the get_str_sep() function is no longer used in net/net.c, we can remove it. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/net.c')
| -rw-r--r-- | net/net.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/net/net.c b/net/net.c index 5ce3996b8d..7d4098254f 100644 --- a/net/net.c +++ b/net/net.c @@ -64,26 +64,6 @@ static QTAILQ_HEAD(, NetClientState) net_clients; /***********************************************************/ /* network device redirectors */ -static int get_str_sep(char *buf, int buf_size, const char **pp, int sep) -{ - const char *p, *p1; - int len; - p = *pp; - p1 = strchr(p, sep); - if (!p1) - return -1; - len = p1 - p; - p1++; - if (buf_size > 0) { - if (len > buf_size - 1) - len = buf_size - 1; - memcpy(buf, p, len); - buf[len] = '\0'; - } - *pp = p1; - return 0; -} - int parse_host_port(struct sockaddr_in *saddr, const char *str, Error **errp) { |