- for getopt.c, this involved moving the line:
extern char *getenv(const char *name);
outside of the two nested #ifdefs that it was inside, as it is always required (the code that calls it isn't inside any #ifdefs) Perhaps this may break compilation in non-linux/gnu environments?
git-svn-id: http://svn.osgeo.org/postgis/trunk@202
b70326c6-7e19-0410-871a-
916f4a2858ee
******************************************************************************
*
* $Log$
+ * Revision 1.4 2002/10/17 16:45:04 chodgson
+ * - cleaned up all the compiler warnings
+ * - for getopt.c, this involved moving the line:
+ * extern char *getenv(const char *name);
+ * outside of the two nested #ifdefs that it was inside, as it is always required (the code that calls it isn't inside any #ifdefs) Perhaps this may break compilation in non-linux/gnu environments?
+ *
* Revision 1.3 2002/05/04 22:44:04 pramsey
* Update shapelib references to 1.2.9.
*
* Added header.
*/
-static char rcsid[] =
- "$Id$";
-
#include "shapefil.h"
#include <math.h>
whose names are inconsistent. */
#if __STDC__ || defined(PROTO)
-extern char *getenv(const char *name);
extern int strcmp (const char *s1, const char *s2);
extern int strncmp(const char *s1, const char *s2, int n);
static int my_strlen(const char *s);
static char *my_index (const char *str, int chr);
-#else
-extern char *getenv ();
#endif
static int
#endif /* GNU C library. */
+extern char *getenv(const char *name);
+
/* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have
char *result;
char *str2;
- char *start, *end1, *end2;
+ char *start, *end1, *end2 = NULL;
int num_chars = 0;
str2 = str;
******************************************************************************
*
* $Log$
+ * Revision 1.4 2002/10/17 16:45:04 chodgson
+ * - cleaned up all the compiler warnings
+ * - for getopt.c, this involved moving the line:
+ * extern char *getenv(const char *name);
+ * outside of the two nested #ifdefs that it was inside, as it is always required (the code that calls it isn't inside any #ifdefs) Perhaps this may break compilation in non-linux/gnu environments?
+ *
* Revision 1.3 2002/05/04 22:44:04 pramsey
* Update shapelib references to 1.2.9.
*
*
*/
-static char rcsid[] =
- "$Id$";
-
#include "shapefil.h"
#include <math.h>