This is the mail archive of the
rda@sources.redhat.com
mailing list for the rda project.
PATCH: #include <string.h> where needed
- From: Jim Blandy <jimb at redhat dot com>
- To: rda at sources dot redhat dot com
- Date: 24 Sep 2004 16:18:17 -0500
- Subject: PATCH: #include <string.h> where needed
This patch eliminates some build warnings due to missing prototypes.
Committed as obvious.
2004-09-24 Jim Blandy <jimb@redhat.com>
* lib/gdbserv-output.c, samples/demo-target.c, samples/main.c,
samples/poll.c: #include <string.h>.
Index: rda/lib/gdbserv-output.c
===================================================================
RCS file: /cvs/src/src/rda/lib/gdbserv-output.c,v
retrieving revision 1.1
diff -c -p -r1.1 gdbserv-output.c
*** rda/lib/gdbserv-output.c 28 Aug 2002 01:22:28 -0000 1.1
--- rda/lib/gdbserv-output.c 24 Sep 2004 21:10:29 -0000
***************
*** 24,29 ****
--- 24,30 ----
#include <stdio.h>
#include <assert.h>
+ #include <string.h>
#include "gdbserv.h"
#include "gdbserv-state.h"
#include "gdbserv-utils.h"
Index: rda/samples/demo-target.c
===================================================================
RCS file: /cvs/src/src/rda/samples/demo-target.c,v
retrieving revision 1.2
diff -c -p -r1.2 demo-target.c
*** rda/samples/demo-target.c 14 Jul 2004 20:03:05 -0000 1.2
--- rda/samples/demo-target.c 24 Sep 2004 21:10:29 -0000
***************
*** 27,32 ****
--- 27,33 ----
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
+ #include <string.h>
#if TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
Index: rda/samples/main.c
===================================================================
RCS file: /cvs/src/src/rda/samples/main.c,v
retrieving revision 1.1
diff -c -p -r1.1 main.c
*** rda/samples/main.c 28 Aug 2002 01:22:28 -0000 1.1
--- rda/samples/main.c 24 Sep 2004 21:10:29 -0000
***************
*** 27,32 ****
--- 27,33 ----
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
+ #include <string.h>
#include <unistd.h>
#include <signal.h>
#include <ctype.h>
Index: rda/samples/poll.c
===================================================================
RCS file: /cvs/src/src/rda/samples/poll.c,v
retrieving revision 1.1
diff -c -p -r1.1 poll.c
*** rda/samples/poll.c 28 Aug 2002 01:22:28 -0000 1.1
--- rda/samples/poll.c 24 Sep 2004 21:10:29 -0000
***************
*** 27,32 ****
--- 27,33 ----
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
+ #include <string.h>
#if TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>