summaryrefslogtreecommitdiff
path: root/src/utils/version.c
diff options
context:
space:
mode:
authorPeter Eisentraut2000-06-14 18:18:01 +0000
committerPeter Eisentraut2000-06-14 18:18:01 +0000
commit44d1abebb48d678ac1b75f6556c68c9634cb235b (patch)
treefe1efd24fb2fa1565bb69533583bda1e94f13a08 /src/utils/version.c
parent4786a808d9f58746ebb77bf78a6ae2d0854cd6b9 (diff)
Big warnings cleanup for Solaris/GCC. Down to about 40 now, but
we'll get there one day. Use `cat' to create aclocal.m4, not `aclocal'. Some people don't have automake installed. Only run the autoconf rule in the top-level GNUmakefile if the invoker specified `make configure', don't run it automatically because of CVS timestamp skew.
Diffstat (limited to 'src/utils/version.c')
-rw-r--r--src/utils/version.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/version.c b/src/utils/version.c
index 6f3d2f394ac..d58ccdf6853 100644
--- a/src/utils/version.c
+++ b/src/utils/version.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/utils/Attic/version.c,v 1.16 2000/06/02 15:57:44 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/utils/Attic/version.c,v 1.17 2000/06/14 18:18:01 petere Exp $
*
* STANDALONE CODE - do not use error routines as this code is not linked
* with any...
@@ -76,7 +76,7 @@ ValidatePgVersion(const char *path, char **reason_p)
{
nread = read(fd, version, sizeof(version) - 1);
if (nread < 4 ||
- !isdigit(version[0]) ||
+ !isdigit((int)version[0]) ||
version[nread - 1] != '\n')
{
*reason_p = malloc(100 + strlen(full_path));