diff options
author | Christopher Faylor <me@cgf.cx> | 2002-09-23 00:31:31 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-09-23 00:31:31 +0000 |
commit | f0227ea3c78d8d23dc35f0939219649447eecfae (patch) | |
tree | 0a116e294fa35db8a66901f6ef85b41720913c2f /winsup/cygwin/environ.cc | |
parent | c87c8a533f9e917878d433956420953598ab6cd6 (diff) | |
download | newlib-f0227ea3c78d8d23dc35f0939219649447eecfae.zip newlib-f0227ea3c78d8d23dc35f0939219649447eecfae.tar.gz newlib-f0227ea3c78d8d23dc35f0939219649447eecfae.tar.bz2 |
More GNUify non-GNU formatted functions calls throughout.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r-- | winsup/cygwin/environ.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index ce6c8ba..d2385f3 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -622,7 +622,7 @@ regopt (const char *name) /* FIXME: should not be under mount */ reg_key r (KEY_READ, CYGWIN_INFO_PROGRAM_OPTIONS_NAME, NULL); char buf[MAX_PATH]; - char lname[strlen(name) + 1]; + char lname[strlen (name) + 1]; strlwr (strcpy (lname, name)); if (r.get_string (lname, buf, sizeof (buf) - 1, "") == ERROR_SUCCESS) @@ -665,8 +665,8 @@ environ_init (char **envp, int envc) { for (int i = 0; conv_envvars[i].name != NULL; i++) { - conv_start_chars[cyg_tolower(conv_envvars[i].name[0])] = 1; - conv_start_chars[cyg_toupper(conv_envvars[i].name[0])] = 1; + conv_start_chars[cyg_tolower (conv_envvars[i].name[0])] = 1; + conv_start_chars[cyg_toupper (conv_envvars[i].name[0])] = 1; } initted = 1; } @@ -728,8 +728,8 @@ environ_init (char **envp, int envc) ucenv (newp, eq); if (*newp == 'T' && strncmp (newp, "TERM=", 5) == 0) sawTERM = 1; - if (*newp == 'C' && strncmp (newp, "CYGWIN=", sizeof("CYGWIN=") - 1) == 0) - parse_options (newp + sizeof("CYGWIN=") - 1); + if (*newp == 'C' && strncmp (newp, "CYGWIN=", sizeof ("CYGWIN=") - 1) == 0) + parse_options (newp + sizeof ("CYGWIN=") - 1); if (*eq && conv_start_chars[(unsigned char)envp[i][0]]) posify (envp + i, *++eq ? eq : --eq); debug_printf ("%p: %s", envp[i], envp[i]); |