replace use of gnulib snprintf by g_snprintf

Glib implementation follows the ISO C99 standard so it's safe to replace
the gnulib implementation.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Pavel Hrdina
2019-11-13 14:53:42 +01:00
parent 8addef2bef
commit 43b01ef2d6
39 changed files with 188 additions and 188 deletions

View File

@@ -211,7 +211,7 @@ testSocketAccept(const void *opaque)
cdata.path = path;
} else {
snprintf(portstr, sizeof(portstr), "%d", data->port);
g_snprintf(portstr, sizeof(portstr), "%d", data->port);
if (virNetSocketNewListenTCP(data->lnode, portstr,
AF_UNSPEC,
&lsock, &nlsock) < 0)