diff options
author | Paul Smith <psmith@gnu.org> | 2013-11-27 19:43:33 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-11-27 19:43:33 -0500 |
commit | a4937bc897320563091a77087baf1cdbe52885ab (patch) | |
tree | cc7c96dd97d757bf5bc63b91755af897b4361a32 /w32/pathstuff.c | |
parent | 889303cdfe968d6320fb92a8a617a4096076fece (diff) | |
download | gunmake-a4937bc897320563091a77087baf1cdbe52885ab.tar.gz |
* w32/*: Remove TABs from the source code.
I know whitespace commits are annoying, but having these TABs is
causing me to miss things when I search through the code. This
doesn't try to change the w32 code to meet GNU coding standards.
Diffstat (limited to 'w32/pathstuff.c')
-rw-r--r-- | w32/pathstuff.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/w32/pathstuff.c b/w32/pathstuff.c index 0e33821..4b550cb 100644 --- a/w32/pathstuff.c +++ b/w32/pathstuff.c @@ -27,15 +27,15 @@ convert_vpath_to_windows32(char *Path, char to_delim) { char *etok; /* token separator for old Path */ - /* - * Convert all spaces to delimiters. Note that pathnames which - * contain blanks get trounced here. Use 8.3 format as a workaround. - */ - for (etok = Path; etok && *etok; etok++) - if (isblank ((unsigned char) *etok)) - *etok = to_delim; - - return (convert_Path_to_windows32(Path, to_delim)); + /* + * Convert all spaces to delimiters. Note that pathnames which + * contain blanks get trounced here. Use 8.3 format as a workaround. + */ + for (etok = Path; etok && *etok; etok++) + if (isblank ((unsigned char) *etok)) + *etok = to_delim; + + return (convert_Path_to_windows32(Path, to_delim)); } /* @@ -79,7 +79,7 @@ convert_Path_to_windows32(char *Path, char to_delim) if (etok) { *etok = to_delim; p = ++etok; - } else + } else p += strlen(p); } else { /* found another one, no drive letter */ @@ -114,14 +114,14 @@ w32ify(const char *filename, int resolve) char * getcwd_fs(char* buf, int len) { - char *p = getcwd(buf, len); + char *p = getcwd(buf, len); - if (p) { - char *q = w32ify(buf, 0); - strncpy(buf, q, len); - } + if (p) { + char *q = w32ify(buf, 0); + strncpy(buf, q, len); + } - return p; + return p; } #ifdef unused |