summaryrefslogtreecommitdiff
path: root/libio/tst-ungetwc1.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-23 08:36:47 +0000
committerRoland McGrath <roland@gnu.org>2001-08-23 08:36:47 +0000
commit9efc8b95af3b3e832d7d3660119c3d487d40d16e (patch)
treefbd62af5cbd4a910ce1da1e9c1ef4d5b8b6b077d /libio/tst-ungetwc1.c
parentc12aa8015699d66a193c3c183b4f1d1a72bb92c1 (diff)
* libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
* nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN. Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
Diffstat (limited to 'libio/tst-ungetwc1.c')
-rw-r--r--libio/tst-ungetwc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/tst-ungetwc1.c b/libio/tst-ungetwc1.c
index eeee7f699b..f74c407893 100644
--- a/libio/tst-ungetwc1.c
+++ b/libio/tst-ungetwc1.c
@@ -11,7 +11,7 @@ int
main (void)
{
FILE *fp;
- char *str ="abcdef";
+ const char *str = "abcdef";
wint_t ret, wc, ungetone = 0x00E4; /* 0x00E4 means `a umlaut'. */
char fname[] = "/tmp/tst-ungetwc1.out.XXXXXX";
int fd;