Fix a warning

This commit is contained in:
Matthias Clasen
2010-07-26 21:17:56 -04:00
parent d0750c9d6e
commit caa9453b72
3 changed files with 3 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ static ParseTest tests[] =
{
{ "www.gnome.org", "www.gnome.org", 1234, -1 },
{ "www.gnome.org:8080", "www.gnome.org", 8080, -1 },
{ "www.gnome.org:http", "www.gnome.org", 80, -1 },
{ "[2001:db8::1]", "2001:db8::1", 1234, -1 },
{ "[2001:db8::1]:888", "2001:db8::1", 888, -1 },
{ "[hostname", NULL, 0, G_IO_ERROR_INVALID_ARGUMENT },
@@ -44,7 +45,7 @@ static ParseTest tests[] =
static void
test_parse (gconstpointer d)
{
ParseTest *test = d;
const ParseTest *test = d;
GNetworkAddress *address;
GError *error;