X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-xvasprintf.c;h=aeeb3e5388ca92deb9142931246586784ac3881c;hb=4af5eabfc04010c39947d3ae9763ae931d63c191;hp=9aff3692e4aea889c15b67e0591425b16407dc68;hpb=987e5651e8d1c5aa933c9ce88562806af4093702;p=pspp diff --git a/tests/test-xvasprintf.c b/tests/test-xvasprintf.c index 9aff3692e4..aeeb3e5388 100644 --- a/tests/test-xvasprintf.c +++ b/tests/test-xvasprintf.c @@ -1,5 +1,5 @@ /* Test of xvasprintf() and xasprintf() functions. - Copyright (C) 2007-2009 Free Software Foundation, Inc. + Copyright (C) 2007-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -55,7 +55,7 @@ test_xvasprintf (void) { /* Silence gcc warning about zero-length format string. */ - char *empty = ""; + const char *empty = ""; result = my_xasprintf (empty); ASSERT (result != NULL); ASSERT (strcmp (result, "") == 0); @@ -79,7 +79,7 @@ test_xvasprintf (void) } static void -test_xasprintf () +test_xasprintf (void) { int repeat; char *result; @@ -94,7 +94,7 @@ test_xasprintf () { /* Silence gcc warning about zero-length format string. */ - char *empty = ""; + const char *empty = ""; result = xasprintf (empty); ASSERT (result != NULL); ASSERT (strcmp (result, "") == 0);