diff options
| author | Bruce Momjian <bruce@momjian.us> | 2002-10-03 17:09:42 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2002-10-03 17:09:42 +0000 |
| commit | a0bf2503ea0d9a1a2208dd3cf74727bcda7e69d2 (patch) | |
| tree | aa3d6727dc94d4a0c4741077184e7cfcf5cdf709 /src/bin/psql/large_obj.c | |
| parent | d4eae72513d919522c8711b55894511f4fb49443 (diff) | |
| download | postgresql-a0bf2503ea0d9a1a2208dd3cf74727bcda7e69d2.tar.gz | |
The attached patch fixes a number of issues related to compiling the
client
utilities (libpq.dll and psql.exe) for win32 (missing defines,
adjustments to
includes, pedantic casting, non-existent functions) per:
http://developer.postgresql.org/docs/postgres/install-win32.html.
It compiles cleanly under Windows 2000 using Visual Studio .net. Also
compiles clean and passes all regression tests (regular and contrib)
under Linux.
In addition to a review by the usual suspects, it would be very
desirable for someone well versed in the peculiarities of win32 to take
a look.
Joe Conway
Diffstat (limited to 'src/bin/psql/large_obj.c')
| -rw-r--r-- | src/bin/psql/large_obj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/large_obj.c b/src/bin/psql/large_obj.c index 2bca9da05e..9bf51622cc 100644 --- a/src/bin/psql/large_obj.c +++ b/src/bin/psql/large_obj.c @@ -3,7 +3,7 @@ * * Copyright 2000-2002 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.21 2002/09/04 20:31:36 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.22 2002/10/03 17:09:41 momjian Exp $ */ #include "postgres_fe.h" #include "large_obj.h" @@ -196,7 +196,7 @@ do_lo_import(const char *filename_arg, const char *comment_arg) { char *cmdbuf; char *bufptr; - int slen = strlen(comment_arg); + size_t slen = strlen(comment_arg); cmdbuf = malloc(slen * 2 + 256); if (!cmdbuf) |
