summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.gdbtk/simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.gdbtk/simple.c')
-rw-r--r--gdb/testsuite/gdb.gdbtk/simple.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.gdbtk/simple.c b/gdb/testsuite/gdb.gdbtk/simple.c
index c4d4ef5a0a0..b35cd58851b 100644
--- a/gdb/testsuite/gdb.gdbtk/simple.c
+++ b/gdb/testsuite/gdb.gdbtk/simple.c
@@ -1,6 +1,3 @@
-#include <string.h>
-#include <stdlib.h>
-
int
main(int argc, char * argv[])
{
@@ -15,7 +12,7 @@ main(int argc, char * argv[])
{
int j = i % 3;
int k = 3 - j;
- strncpy (&a[i], &b[k], j);
+ strncpy (a[i], b[k], j);
foo = (long) j * k / i + 2 * k * k * k;
}
return 0;