* serial.h (SERIAL_SET_TTY_STATE): Comment return value.
[deliverable/binutils-gdb.git] / gdb / putenv.c
index 907a91ee71da9ba4bbd196deb9ea62fe48c627dc..e2ea3572d91df58ecb5c0d2e62d349258938d293 100644 (file)
@@ -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 );
 
@@ -100,7 +100,7 @@ putenv( entry )
   if ( new_environ == (char **) NULL )
     return( -1 );
 
-  (void) memcpy ((char *) new_environ, (char *) environ, size*PSIZE );
+  memcpy ((char *) new_environ, (char *) environ, size*PSIZE );
 
   new_environ[size]   = entry;
   new_environ[size+1] = NULL;
This page took 0.024499 seconds and 4 git commands to generate.