aboutsummaryrefslogtreecommitdiff
path: root/libiberty/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-06-16 12:44:35 +0000
committerNick Clifton <nickc@redhat.com>2009-06-16 12:44:35 +0000
commit5d7aee10551db7bde4ec3043ca84f7b3eb6c0565 (patch)
treece5619671975adf2197137ceb14bc4cabfcd8f8c /libiberty/testsuite
parente7e981d68486380483cff5ed13408b8ab00f56d8 (diff)
downloadgdb-5d7aee10551db7bde4ec3043ca84f7b3eb6c0565.zip
gdb-5d7aee10551db7bde4ec3043ca84f7b3eb6c0565.tar.gz
gdb-5d7aee10551db7bde4ec3043ca84f7b3eb6c0565.tar.bz2
PR 10197
* testsuite/test-demangle.c: Rename getline to get_line to avoid conflicts with system function of the same name.
Diffstat (limited to 'libiberty/testsuite')
-rw-r--r--libiberty/testsuite/test-demangle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libiberty/testsuite/test-demangle.c b/libiberty/testsuite/test-demangle.c
index 12b07dd..1c982d6 100644
--- a/libiberty/testsuite/test-demangle.c
+++ b/libiberty/testsuite/test-demangle.c
@@ -46,7 +46,7 @@ static unsigned int lineno;
#define LINELEN 80
static void
-getline(buf)
+get_line(buf)
struct line *buf;
{
char *data = buf->data;
@@ -196,12 +196,12 @@ main(argc, argv)
{
const char *inp;
- getline (&format);
+ get_line (&format);
if (feof (stdin))
break;
- getline (&input);
- getline (&expect);
+ get_line (&input);
+ get_line (&expect);
inp = protect_end (input.data);
@@ -322,7 +322,7 @@ main(argc, argv)
if (no_params)
{
- getline (&expect);
+ get_line (&expect);
result = cplus_demangle (inp, DMGL_ANSI|DMGL_TYPES);
if (result