summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/environ.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-07-06 20:05:03 +0000
committerChristopher Faylor <me@cgf.cx>2005-07-06 20:05:03 +0000
commit0c55f6ed60a0b1b9c6ac47f8726191e48f90c052 (patch)
treebddbfd9cddc82d403fbfaa4f619e8f14c47159fe /winsup/cygwin/environ.cc
parentdee9edd9ed9fbe5f97367ad04d4203729e02ca9a (diff)
downloadcygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.gz
cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.bz2
cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.zip
Eliminate (void) cast on standalone function calls throughout.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r--winsup/cygwin/environ.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index 099dcaee5..33c6c78fb 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -106,13 +106,13 @@ win_env::add_cache (const char *in_posix, const char *in_native)
if (in_native)
{
native = (char *) realloc (native, namelen + 1 + strlen (in_native));
- (void) strcpy (native, name);
- (void) strcpy (native + namelen, in_native);
+ strcpy (native, name);
+ strcpy (native + namelen, in_native);
}
else
{
native = (char *) realloc (native, namelen + 1 + win32_len (in_posix));
- (void) strcpy (native, name);
+ strcpy (native, name);
towin32 (in_posix, native + namelen);
}
MALLOC_CHECK;
@@ -897,7 +897,7 @@ spenv::retrieve (bool no_envblock, const char *const env)
return env_dontadd;
char *s = (char *) cmalloc (HEAP_1_STR, namelen + strlen (p) + 1);
strcpy (s, name);
- (void) strcpy (s + namelen, p);
+ strcpy (s + namelen, p);
debug_printf ("using computed value for '%s'", name);
return s;
}