mirror of
https://github.com/postgres/postgres.git
synced 2025-12-22 17:42:17 +03:00
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.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.112 2000/06/05 17:07:56 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.113 2000/06/14 18:17:25 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -325,7 +325,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
|
||||
elog(ERROR, "COPY command, running in backend with "
|
||||
"effective uid %d, could not open file '%s' for "
|
||||
"reading. Errno = %s (%d).",
|
||||
geteuid(), filename, strerror(errno), errno);
|
||||
(int) geteuid(), filename, strerror(errno), errno);
|
||||
}
|
||||
CopyFrom(rel, binary, oids, fp, delim, null_print);
|
||||
}
|
||||
@@ -358,7 +358,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
|
||||
elog(ERROR, "COPY command, running in backend with "
|
||||
"effective uid %d, could not open file '%s' for "
|
||||
"writing. Errno = %s (%d).",
|
||||
geteuid(), filename, strerror(errno), errno);
|
||||
(int) geteuid(), filename, strerror(errno), errno);
|
||||
}
|
||||
CopyTo(rel, binary, oids, fp, delim, null_print);
|
||||
}
|
||||
|
||||
@@ -398,8 +398,8 @@ get_seq_name(text *seqin)
|
||||
*/
|
||||
for (; *rawname; rawname++)
|
||||
{
|
||||
if (isascii((unsigned char) *rawname) &&
|
||||
isupper(*rawname))
|
||||
if (isascii((int) *rawname) &&
|
||||
isupper((int) *rawname))
|
||||
*rawname = tolower(*rawname);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.36 2000/06/09 01:44:03 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.37 2000/06/14 18:17:25 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -96,7 +96,7 @@ get_token(char **tok, char **val, char *str)
|
||||
return NULL;
|
||||
|
||||
/* skip leading white space */
|
||||
while (isspace(*str))
|
||||
while (isspace((int) *str))
|
||||
str++;
|
||||
|
||||
/* end of string? then return NULL */
|
||||
@@ -110,7 +110,7 @@ get_token(char **tok, char **val, char *str)
|
||||
*tok = str;
|
||||
|
||||
/* Advance to end of word */
|
||||
while (*str && !isspace(*str) && *str != ',' && *str != '=')
|
||||
while (*str && !isspace((int) *str) && *str != ',' && *str != '=')
|
||||
str++;
|
||||
|
||||
/* Terminate word string for caller */
|
||||
@@ -118,7 +118,7 @@ get_token(char **tok, char **val, char *str)
|
||||
*str = '\0';
|
||||
|
||||
/* Skip any whitespace */
|
||||
while (isspace(ch))
|
||||
while (isspace((int) ch))
|
||||
ch = *(++str);
|
||||
|
||||
/* end of string? */
|
||||
@@ -136,7 +136,7 @@ get_token(char **tok, char **val, char *str)
|
||||
str++;
|
||||
|
||||
/* skip whitespace after '=' */
|
||||
while (isspace(*str))
|
||||
while (isspace((int) *str))
|
||||
str++;
|
||||
|
||||
if (*str == ',' || *str == '\0')
|
||||
@@ -146,7 +146,7 @@ get_token(char **tok, char **val, char *str)
|
||||
*val = str;
|
||||
|
||||
/* Advance to end of word */
|
||||
while (*str && !isspace(*str) && *str != ',')
|
||||
while (*str && !isspace((int) *str) && *str != ',')
|
||||
str++;
|
||||
|
||||
/* Terminate word string for caller */
|
||||
@@ -154,7 +154,7 @@ get_token(char **tok, char **val, char *str)
|
||||
*str = '\0';
|
||||
|
||||
/* Skip any whitespace */
|
||||
while (isspace(ch))
|
||||
while (isspace((int) ch))
|
||||
ch = *(++str);
|
||||
|
||||
/* end of string? */
|
||||
|
||||
Reference in New Issue
Block a user