diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-10-06 07:50:18 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-06 07:50:18 +0000 |
commit | 39af394a1c3ae1d8ac71ad263a7c524988702c2e (patch) | |
tree | 4ba44670440d52ff6c3b07fdef35ae3384f3dc5a /src/homedir.c | |
parent | 5c7dcc6c33bb9e9621cf09ada4a15f310cf1c0e0 (diff) | |
download | curl-39af394a1c3ae1d8ac71ad263a7c524988702c2e.tar.gz |
removed tabs and trailing whitespace from source
Diffstat (limited to 'src/homedir.c')
-rw-r--r-- | src/homedir.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/homedir.c b/src/homedir.c index 3ec196a7e..69fbc467c 100644 --- a/src/homedir.c +++ b/src/homedir.c @@ -1,8 +1,8 @@ /*************************************************************************** - * _ _ ____ _ - * Project ___| | | | _ \| | - * / __| | | | |_) | | - * | (__| |_| | _ <| |___ + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al. @@ -10,7 +10,7 @@ * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are also available at http://curl.haxx.se/docs/copyright.html. - * + * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is * furnished to do so, under the terms of the COPYING file. @@ -56,7 +56,7 @@ char *GetEnv(const char *variable, char do_expand) /* Don't use getenv(); it doesn't find variable added after program was * started. Don't accept truncated results (i.e. rc >= sizeof(buf1)). */ - + rc = GetEnvironmentVariable(variable, buf1, sizeof(buf1)); if (rc > 0 && rc < sizeof(buf1)) { env = buf1; @@ -71,10 +71,10 @@ char *GetEnv(const char *variable, char do_expand) } #else (void)do_expand; -#ifdef VMS +#ifdef VMS env = getenv(variable); if (env && strcmp("HOME",variable) == 0) { - env = decc$translate_vms(env); + env = decc$translate_vms(env); } #else /* no length control */ @@ -90,11 +90,11 @@ char *homedir(void) char *home = GetEnv("HOME", FALSE); if(home) return home; - + #if defined(HAVE_GETPWUID) && defined(HAVE_GETEUID) { struct passwd *pw = getpwuid(geteuid()); - + if (pw) { #ifdef VMS home = decc$translate_vms(pw->pw_dir); |