aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-25 05:54:12 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-25 06:02:17 -0500
commit13e49fd6364e94625985b9eb15da5b1decd6a196 (patch)
treea53586fdd29f1762738788571f4cc825e4407020
parentd4a587a4ed828eaf3273b435e328120e73bbb2cc (diff)
downloadgdb-13e49fd6364e94625985b9eb15da5b1decd6a196.zip
gdb-13e49fd6364e94625985b9eb15da5b1decd6a196.tar.gz
gdb-13e49fd6364e94625985b9eb15da5b1decd6a196.tar.bz2
sim: cris: clean up rvdummy a bit
This fixes a few warnings when compiling the rvdummy tool.
-rw-r--r--sim/cris/ChangeLog5
-rw-r--r--sim/cris/rvdummy.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog
index 66ef461..6fa2523 100644
--- a/sim/cris/ChangeLog
+++ b/sim/cris/ChangeLog
@@ -1,5 +1,10 @@
2015-12-25 Mike Frysinger <vapier@gentoo.org>
+ * rvdummy.c (_GNU_SOURCE): Delete.
+ (setupsocket): Mark static.
+
+2015-12-25 Mike Frysinger <vapier@gentoo.org>
+
* Makefile.in (SIM_OBJS): Delete sim-model.o.
* tconfig.h (SIM_HAVE_MODEL): Delete.
diff --git a/sim/cris/rvdummy.c b/sim/cris/rvdummy.c
index f788686..994992c 100644
--- a/sim/cris/rvdummy.c
+++ b/sim/cris/rvdummy.c
@@ -36,7 +36,6 @@ main (int argc, char *argv[])
#include "getopt.h"
#include "libiberty.h"
-#define _GNU_SOURCE
#include <stdio.h>
#ifdef HAVE_UNISTD_H
@@ -104,7 +103,7 @@ static void handle_input_file (int, char *);
connection. Return a file descriptor for the connection or -1 on
error. */
-int setupsocket (void)
+static int setupsocket (void)
{
int s;
socklen_t len;