X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fclasspath.c;h=62620b3d17e4805fea8bdc81d3f40afcbbbd183b;hb=b308995259641fcfe5fb46d291944e14e6edc8e4;hp=0651d0f82cec5ca4c397ddebbc5218d5986d003d;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/classpath.c b/lib/classpath.c index 0651d0f82..62620b3d1 100644 --- a/lib/classpath.c +++ b/lib/classpath.c @@ -1,5 +1,5 @@ /* Java CLASSPATH handling. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006, 2009-2011 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -46,7 +46,7 @@ CLASSPATH is ignored. */ char * new_classpath (const char * const *classpaths, unsigned int classpaths_count, - bool use_minimal_classpath) + bool use_minimal_classpath) { const char *old_classpath; unsigned int length; @@ -81,7 +81,7 @@ new_classpath (const char * const *classpaths, unsigned int classpaths_count, else { if (classpaths_count > 0) - p--; + p--; } *p = '\0'; @@ -91,7 +91,7 @@ new_classpath (const char * const *classpaths, unsigned int classpaths_count, /* Set CLASSPATH and returns a safe copy of its old value. */ char * set_classpath (const char * const *classpaths, unsigned int classpaths_count, - bool use_minimal_classpath, bool verbose) + bool use_minimal_classpath, bool verbose) { const char *old_CLASSPATH = getenv (CLASSPATHVAR); char *result = (old_CLASSPATH != NULL ? xstrdup (old_CLASSPATH) : NULL);