aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/psql.c
diff options
context:
space:
mode:
authorBryan Henderson <bryanh@giraffe.netgate.net>1996-11-24 04:44:24 +0000
committerBryan Henderson <bryanh@giraffe.netgate.net>1996-11-24 04:44:24 +0000
commit092c7a6be58eb76d1f65cd4609ac7e2e17e90a89 (patch)
tree93bd6c2df77f9ad15fad1b52e5c0a2c3fef322e4 /src/bin/psql/psql.c
parentd3f9d6ad4f1beb46792dda93a2df518d3a1c2b2a (diff)
downloadpostgresql-092c7a6be58eb76d1f65cd4609ac7e2e17e90a89.tar.gz
postgresql-092c7a6be58eb76d1f65cd4609ac7e2e17e90a89.zip
Typecasts, etc. to make compile work on AIX. Thanks Darren King..
Diffstat (limited to 'src/bin/psql/psql.c')
-rw-r--r--src/bin/psql/psql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index 8b22ecf70cb..5d0ce15fe37 100644
--- a/src/bin/psql/psql.c
+++ b/src/bin/psql/psql.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.32 1996/11/22 06:45:14 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.33 1996/11/24 04:44:24 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
@@ -739,7 +739,7 @@ do_copy(const char *args, PsqlSettings * settings)
} else {
copystream = fopen(file, "w");
}
- if (copystream < 0)
+ if (copystream == NULL)
fprintf(stderr,
"Unable to open file %s which to copy, errno = %s (%d).",
from ? "from" : "to", strerror(errno), errno);