summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/xdirname.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
commitff95b300f8204c215384425032124f206349bca2 (patch)
treeabdb4fced025cb35b974f9f0ba0c7d6c9fd01094 /Build/source/texk/kpathsea/xdirname.c
parent64252d2baf23bb55ca90c388215779740c73e695 (diff)
remove trailing spaces.
git-svn-id: svn://tug.org/texlive/trunk@18276 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/xdirname.c')
-rw-r--r--Build/source/texk/kpathsea/xdirname.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/kpathsea/xdirname.c b/Build/source/texk/kpathsea/xdirname.c
index dee5374754b..62da3d95c9c 100644
--- a/Build/source/texk/kpathsea/xdirname.c
+++ b/Build/source/texk/kpathsea/xdirname.c
@@ -30,11 +30,11 @@ xdirname (const_string name)
{
string ret;
unsigned limit = 0, loc;
-
+
/* Ignore a NULL name. */
if (!name)
return NULL;
-
+
if (NAME_BEGINS_WITH_DEVICE(name)) {
limit = 2;
#if defined(WIN32) || defined(__CYGWIN__)
@@ -51,10 +51,10 @@ xdirname (const_string name)
}
#endif
}
-
+
for (loc = strlen (name); loc > limit && !IS_DIR_SEP (name[loc-1]); loc--)
;
-
+
if (loc == limit && limit > 0) {
if (limit == 2) {
ret = (string)xmalloc(limit + 2);
@@ -75,7 +75,7 @@ xdirname (const_string name)
strncpy(ret, name, loc);
ret[loc] = '\0';
}
-
+
return ret;
}
@@ -98,7 +98,7 @@ char *tab[] = {
"/usr/kpsewhich.exe",
"///usr/kpsewhich.exe",
"///kpsewhich.exe",
- NULL
+ NULL
};
int main()