diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-11-16 05:51:07 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-11-16 05:51:07 +0000 |
commit | 312063c97be346c3ce01faff021e9bff0464fa5c (patch) | |
tree | a4b33aa5242b3e1172379308804f3b06a89857bc /src/bin/psql/print.c | |
parent | 580d2bc60f0e225e3fffc4da81039cf28e249749 (diff) | |
download | postgresql-312063c97be346c3ce01faff021e9bff0464fa5c.tar.gz postgresql-312063c97be346c3ce01faff021e9bff0464fa5c.zip |
Make pgsql compile on FreeBSD-alpha.
Context diff this time.
Remove -m486 compile args for FreeBSD-i386, compile -O2 on i386.
Compile with only -O on alpha for codegen safety.
Make the port use the TEST_AND_SET for alpha and i386 on FreeBSD.
Fix a lot of bogus string formats for outputting pointers (cast to int
and %u/%x replaced with no cast and %p), and 'Size'(size_t) are now
cast to 'unsigned long' and output with %lu/
Remove an unused variable.
Alfred Perlstein
Diffstat (limited to 'src/bin/psql/print.c')
-rw-r--r-- | src/bin/psql/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index b94b90ba36f..a94ac199091 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.13 2000/04/12 17:16:22 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.14 2000/11/16 05:51:03 momjian Exp $ */ #include "postgres.h" #include "print.h" @@ -250,7 +250,7 @@ const char *opt_align, bool opt_barebones, unsigned short int opt_border, if (strlen(title) >= total_w) fprintf(fout, "%s\n", title); else - fprintf(fout, "%-*s%s\n", (total_w - strlen(title)) / 2, "", title); + fprintf(fout, "%-*s%s\n", (int)(total_w - strlen(title)) / 2, "", title); } /* print headers */ |