diff --git a/base/hosts.c b/base/hosts.c index ce82ae6d2..33235dd21 100644 --- a/base/hosts.c +++ b/base/hosts.c @@ -1537,10 +1537,10 @@ gvm_hosts_exclude (gvm_hosts_t *hosts, const char *excluded_str) /** * @brief Creates a new gvm_host_t from the provided host_str. host_str can - * consist of hostnam, IPv4 address or IPv6 address. + * consist of hostname, IPv4 address or IPv6 address. * - * @param[in] host_str The host string. A copy will be created of this within - * the returned struct. + * @param[in] host_str The host string. A copy will be created for the returned + * struct. * * @return NULL if error. Otherwise, a single host structure that should be put * into a gvm_hosts_t structure for freeing with @ref gvm_hosts_free or diff --git a/base/hosts.h b/base/hosts.h index 9c9236a91..62453c002 100644 --- a/base/hosts.h +++ b/base/hosts.h @@ -100,8 +100,6 @@ struct gvm_hosts /* Function prototypes. */ /* gvm_hosts_t related */ -void -gvm_hosts_add (gvm_hosts_t *, gvm_host_t *); gvm_hosts_t * gvm_hosts_new (const gchar *); @@ -121,6 +119,9 @@ gvm_hosts_shuffle (gvm_hosts_t *); void gvm_hosts_reverse (gvm_hosts_t *); +void +gvm_hosts_add (gvm_hosts_t *, gvm_host_t *); + GSList * gvm_hosts_resolve (gvm_hosts_t *);