aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/external.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-22 04:50:53 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-22 04:50:53 +0000
commitad377fe34741c57f7d5df44acbcb5402eed9dafe (patch)
tree9d89d4c7141271974c9acfa674f834a0bb3d4586 /winsup/cygwin/external.cc
parent13af9a149da1a97fc7845466ce652427a0765944 (diff)
downloadnewlib-ad377fe34741c57f7d5df44acbcb5402eed9dafe.zip
newlib-ad377fe34741c57f7d5df44acbcb5402eed9dafe.tar.gz
newlib-ad377fe34741c57f7d5df44acbcb5402eed9dafe.tar.bz2
* external.cc (cygwin_internal): Fix va_arg references.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r--winsup/cygwin/external.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index 406786d..85f4032 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -182,7 +182,7 @@ cygwin_internal (cygwin_getinfo_types t, ...)
return (DWORD) fillout_pinfo (va_arg (arg, pid_t), 1);
case CW_INIT_EXCEPTIONS:
- init_exceptions ((exception_list *) arg);
+ init_exceptions (va_arg (arg, exception_list *));
return 0;
case CW_GET_CYGDRIVE_INFO:
@@ -196,16 +196,15 @@ cygwin_internal (cygwin_getinfo_types t, ...)
case CW_SET_CYGWIN_REGISTRY_NAME:
{
-# define cr ((char *) arg)
+ const char *cr = va_arg (arg, char *);
if (check_null_empty_str_errno (cr))
return (DWORD) NULL;
cygheap->cygwin_regname = (char *) crealloc (cygheap->cygwin_regname,
strlen (cr) + 1);
strcpy (cygheap->cygwin_regname, cr);
+ }
case CW_GET_CYGWIN_REGISTRY_NAME:
return (DWORD) cygheap->cygwin_regname;
-# undef cr
- }
case CW_STRACE_TOGGLE:
{