aboutsummaryrefslogtreecommitdiffstats
path: root/indep.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2006-04-07 13:21:11 +0000
committerDai Sato <satodai@w3m.jp>2006-04-07 13:21:11 +0000
commit22d66ca5850bf0190aa48d7f4442484f01fc7d02 (patch)
tree5b96b7e5bd65f08ad23867bc0738a0fef56f35df /indep.c
parentapply multiple patches on w3m-dev(-en) ML since Jun 2005 to Jan 2006. (diff)
downloadw3m-22d66ca5850bf0190aa48d7f4442484f01fc7d02.tar.gz
w3m-22d66ca5850bf0190aa48d7f4442484f01fc7d02.zip
rewind to 10 Feb 2006.
Diffstat (limited to 'indep.c')
-rw-r--r--indep.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/indep.c b/indep.c
index dc864fc..6f3dceb 100644
--- a/indep.c
+++ b/indep.c
@@ -1,9 +1,7 @@
-/* $Id: indep.c,v 1.36 2006/04/05 14:18:54 inu Exp $ */
+/* $Id: indep.c,v 1.37 2006/04/07 13:21:11 inu Exp $ */
#include "fm.h"
#include <stdio.h>
-#ifndef __MINGW32_VERSION
#include <pwd.h>
-#endif /* __MINGW32_VERSION */
#include <sys/param.h>
#include <sys/types.h>
#include <stdlib.h>
@@ -227,7 +225,6 @@ expandPath(char *name)
p = name;
if (*p == '~') {
p++;
-#ifndef __MINGW32_VERSION
if (IS_ALPHA(*p)) {
char *q = strchr(p, '/');
if (q) { /* ~user/dir... */
@@ -241,9 +238,8 @@ expandPath(char *name)
if (!passent)
goto rest;
extpath = Strnew_charp(passent->pw_dir);
- } else
-#endif /* __MINGW32_VERSION */
- if (*p == '/' || *p == '\0') { /* ~/dir... or ~ */
+ }
+ else if (*p == '/' || *p == '\0') { /* ~/dir... or ~ */
extpath = Strnew_charp(getenv("HOME"));
}
else