projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEWS.stable: log cherry-pick [c914617]->[34d3cce] ansi-c++-opt: Interoperability...
[gnulib.git]
/
tests
/
test-xvasprintf.c
diff --git
a/tests/test-xvasprintf.c
b/tests/test-xvasprintf.c
index
df6c200
..
aeeb3e5
100644
(file)
--- a/
tests/test-xvasprintf.c
+++ b/
tests/test-xvasprintf.c
@@
-1,5
+1,5
@@
/* Test of xvasprintf() and xasprintf() functions.
/* Test of xvasprintf() and xasprintf() functions.
- Copyright (C) 2007-201
0
Free Software Foundation, Inc.
+ Copyright (C) 2007-201
1
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
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. */
{
/* Silence gcc warning about zero-length format string. */
- char *empty = "";
+ c
onst c
har *empty = "";
result = my_xasprintf (empty);
ASSERT (result != NULL);
ASSERT (strcmp (result, "") == 0);
result = my_xasprintf (empty);
ASSERT (result != NULL);
ASSERT (strcmp (result, "") == 0);
@@
-79,7
+79,7
@@
test_xvasprintf (void)
}
static void
}
static void
-test_xasprintf ()
+test_xasprintf (
void
)
{
int repeat;
char *result;
{
int repeat;
char *result;
@@
-94,7
+94,7
@@
test_xasprintf ()
{
/* Silence gcc warning about zero-length format string. */
{
/* Silence gcc warning about zero-length format string. */
- char *empty = "";
+ c
onst c
har *empty = "";
result = xasprintf (empty);
ASSERT (result != NULL);
ASSERT (strcmp (result, "") == 0);
result = xasprintf (empty);
ASSERT (result != NULL);
ASSERT (strcmp (result, "") == 0);