diff options
| author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-17 17:06:57 +0000 | 
|---|---|---|
| committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-17 17:06:57 +0000 | 
| commit | 264b3e35ec0ba487e0c8a0af5237c81fd0d4b3c3 (patch) | |
| tree | 43d60426de87a3dcfc3947b6ed792ab29499d2fe | |
| parent | [w3m-dev 03647] expandName() and expandPath() (diff) | |
| download | w3m-264b3e35ec0ba487e0c8a0af5237c81fd0d4b3c3.tar.gz w3m-264b3e35ec0ba487e0c8a0af5237c81fd0d4b3c3.zip | |
fix indent
| -rw-r--r-- | etc.c | 6 | ||||
| -rw-r--r-- | indep.c | 10 | ||||
| -rw-r--r-- | local.c | 4 | ||||
| -rw-r--r-- | rc.c | 4 | 
4 files changed, 12 insertions, 12 deletions
| @@ -1,4 +1,4 @@ -/* $Id: etc.c,v 1.51 2003/01/17 17:06:00 ukai Exp $ */ +/* $Id: etc.c,v 1.52 2003/01/17 17:06:57 ukai Exp $ */  #include "fm.h"  #include <pwd.h>  #include "myctype.h" @@ -1444,11 +1444,11 @@ expandName(char *name)  	    char *q;  	    p += 2;  	    q = strchr(p, '/'); -            if (q) {			/* /~user/dir... */ +	    if (q) {		/* /~user/dir... */  		passent = getpwnam(allocStr(p, q - p));  		p = q;  	    } -	    else {			/* /~user */ +	    else {		/* /~user */  		passent = getpwnam(p);  		p = "";  	    } @@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.29 2003/01/17 17:06:02 ukai Exp $ */ +/* $Id: indep.c,v 1.30 2003/01/17 17:07:00 ukai Exp $ */  #include "fm.h"  #include <stdio.h>  #include <pwd.h> @@ -188,12 +188,12 @@ expandPath(char *name)  	p++;  	if (IS_ALPHA(*p)) {  	    char *q = strchr(p, '/'); -	    if (q) {				/* ~user/dir... */ -	        passent = getpwnam(allocStr(p, q - p)); +	    if (q) {		/* ~user/dir... */ +		passent = getpwnam(allocStr(p, q - p));  		p = q;  	    } -	    else {				/* ~user */ -	        passent = getpwnam(p); +	    else {		/* ~user */ +		passent = getpwnam(p);  		p = "";  	    }  	    if (!passent) @@ -1,4 +1,4 @@ -/* $Id: local.c,v 1.23 2003/01/17 17:06:03 ukai Exp $ */ +/* $Id: local.c,v 1.24 2003/01/17 17:07:00 ukai Exp $ */  #include "fm.h"  #include <string.h>  #include <stdio.h> @@ -300,7 +300,7 @@ checkPath(char *fn, char *path)      Str tmp;      struct stat st;      while (*path) { -    	p = strchr(path, ':'); +	p = strchr(path, ':');  	tmp = Strnew_charp(expandPath(p ? allocStr(path, p - path) : path));  	if (Strlastchar(tmp) != '/')  	    Strcat_char(tmp, '/'); @@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.77 2003/01/17 17:06:05 ukai Exp $ */ +/* $Id: rc.c,v 1.78 2003/01/17 17:07:02 ukai Exp $ */  /*    * Initialization file etc.   */ @@ -1580,7 +1580,7 @@ rcFile(char *base)  	 (base[0] == '.'  	  && (base[1] == '/' || (base[1] == '.' && base[2] == '/')))  	 || (base[0] == '~' && base[1] == '/'))) -		/* /file, ./file, ../file, ~/file */ +	/* /file, ./file, ../file, ~/file */  	return expandPath(base);      return expandPath(Strnew_m_charp(rc_dir, "/", base, NULL)->ptr);  } | 
