diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-06 23:39:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-06 23:39:07 +0000 |
commit | 197e8305a2ead2ba8a015663ebbd8bb64ab41f8c (patch) | |
tree | 3e87bdb651c991e53484294c5078be6767b535b3 /Build/source/texk | |
parent | 21ee3dd4dea43369d0870f20a3523c02aefa2c1c (diff) |
mingw32.c cleanups from taco
git-svn-id: svn://tug.org/texlive/trunk@16930 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/mingw32.c | 12 |
2 files changed, 8 insertions, 10 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 7cd4fb9254e..821f142df8f 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,9 @@ +2010-02-07 Taco Hoekwater <taco@elvenkind.com> + + * mingw32.c (look_for_cmd): remove unused variable new, + clean up preprocessor conditionals. + Report by Hib Eris, tex-k 3 Feb 2010 12:11:42. + 2010-02-01 Peter Breitenlohner <peb@mppmu.mpg.de> * Makefile.am (kpseinclude_HEADERS): Add win32lib.h. diff --git a/Build/source/texk/kpathsea/mingw32.c b/Build/source/texk/kpathsea/mingw32.c index 3fd649fb658..1180c46de62 100644 --- a/Build/source/texk/kpathsea/mingw32.c +++ b/Build/source/texk/kpathsea/mingw32.c @@ -1,6 +1,6 @@ /* mingw32.c: bits and pieces for mingw32 - Copyright 2009 Taco Hoekwater <taco@luatex.org>. + Copyright 2009, 2010 Taco Hoekwater <taco@luatex.org>. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -400,25 +400,18 @@ win32_get_long_filename (char * name, char * buf, int size) */ BOOL -#if 0 -look_for_cmd(const char *cmd, char **app, char **new) -#else look_for_cmd(const char *cmd, char **app) -#endif { char *env_path; char *p, *q; char pname[MAXPATHLEN], *fp; char *suffixes[] = { ".bat", ".cmd", ".com", ".exe", NULL }; char **s; -#if 1 - char **new; -#endif char *app_name, *new_cmd; BOOL go_on; - *new = *app = NULL; + *app = NULL; new_cmd = app_name = NULL; /* We should look for the application name along the PATH, @@ -493,7 +486,6 @@ look_for_cmd(const char *cmd, char **app) } if (env_path) free(env_path); - *new = new_cmd; *app = app_name; return TRUE; |