aboutsummaryrefslogtreecommitdiff
path: root/gdb/putenv.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-09-26 09:04:24 +0000
committerJohn Gilmore <gnu@cygnus>1992-09-26 09:04:24 +0000
commitb38f304c4fc12ec5c3d496cb908ad2d2703d67ad (patch)
treeb688c1014731d4d881c7e0e2c7214954b6bb3ac5 /gdb/putenv.c
parent165410d11ff0f0ec7f8e5dcb1904fbbceb42c132 (diff)
downloadgdb-b38f304c4fc12ec5c3d496cb908ad2d2703d67ad.zip
gdb-b38f304c4fc12ec5c3d496cb908ad2d2703d67ad.tar.gz
gdb-b38f304c4fc12ec5c3d496cb908ad2d2703d67ad.tar.bz2
* putenv.c: index -> strchr.
* regex.c: Always rename bcopy to memcpy, etc. FIXME: Eventually do the renames rather than use #define's. * sparc-tdep.c (deferred_stores): Moved from sparc-xdep.c. Fix bcopy->memcpy. * sparc-xdep.c: Move deferred_stores to target dependent.
Diffstat (limited to 'gdb/putenv.c')
-rw-r--r--gdb/putenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/putenv.c b/gdb/putenv.c
index d111e85..e2ea357 100644
--- a/gdb/putenv.c
+++ b/gdb/putenv.c
@@ -30,7 +30,7 @@ domain program.
extern char **environ;
-char *index();
+char *strchr();
char *malloc();
/****************************************************************/
@@ -74,7 +74,7 @@ putenv( entry )
/* Find the length of the "NAME=" */
- temp = index(entry,'=');
+ temp = strchr(entry,'=');
if ( temp == 0 )
return( -1 );