From 197e8305a2ead2ba8a015663ebbd8bb64ab41f8c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 6 Feb 2010 23:39:07 +0000 Subject: mingw32.c cleanups from taco git-svn-id: svn://tug.org/texlive/trunk@16930 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 6 ++++++ Build/source/texk/kpathsea/mingw32.c | 12 ++---------- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'Build/source') 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 + + * 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 * 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 . + Copyright 2009, 2010 Taco Hoekwater . 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; -- cgit v1.2.3