X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-xvasprintf.c;h=aeeb3e5388ca92deb9142931246586784ac3881c;hb=4af5eabfc04010c39947d3ae9763ae931d63c191;hp=df6c2009de63c5571a18bc96ecb133c66bde1fde;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=pspp diff --git a/tests/test-xvasprintf.c b/tests/test-xvasprintf.c index df6c2009de..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-2010 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);