From 0c55f6ed60a0b1b9c6ac47f8726191e48f90c052 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 6 Jul 2005 20:05:03 +0000 Subject: Eliminate (void) cast on standalone function calls throughout. --- winsup/cygwin/environ.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/environ.cc') 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; } -- cgit v1.2.3