1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Corrected a couple more compiler warnings caused by mutable/constant

string pointer assignments.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15149 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2006-09-25 14:51:15 +00:00
parent 9f37f76b01
commit d5bfee3917
15 changed files with 67 additions and 62 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_unsetenv.c,v 1.7 2006-01-08 12:04:26 obarthel Exp $
* $Id: stdlib_unsetenv.c,v 1.8 2006-09-25 14:51:15 obarthel Exp $
*
* :ts=4
*
@ -54,11 +54,10 @@
/****************************************************************************/
void
unsetenv(const char *original_name)
unsetenv(const char *name)
{
char * name = (char *)original_name;
char * name_copy = NULL;
unsigned i;
size_t i;
if(__check_abort_enabled)
__check_abort();
@ -92,7 +91,7 @@ unsetenv(const char *original_name)
}
PROFILE_OFF();
DeleteVar(name,0);
DeleteVar((STRPTR)name,0);
PROFILE_ON();
out: