From: Mike Frysinger Date: Fri, 25 Dec 2015 10:54:12 +0000 (-0500) Subject: sim: cris: clean up rvdummy a bit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13e49fd6364e94625985b9eb15da5b1decd6a196;p=binutils-gdb.git sim: cris: clean up rvdummy a bit This fixes a few warnings when compiling the rvdummy tool. --- diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog index 66ef461120f..6fa252344db 100644 --- a/sim/cris/ChangeLog +++ b/sim/cris/ChangeLog @@ -1,3 +1,8 @@ +2015-12-25 Mike Frysinger + + * rvdummy.c (_GNU_SOURCE): Delete. + (setupsocket): Mark static. + 2015-12-25 Mike Frysinger * Makefile.in (SIM_OBJS): Delete sim-model.o. diff --git a/sim/cris/rvdummy.c b/sim/cris/rvdummy.c index f7886865fdf..994992c7635 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 #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;