projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0989c6
)
Fix storage of getopt() return, should be 'int', for pg_upgrade.
author
Bruce Momjian
<bruce@momjian.us>
Tue, 15 Jun 2010 23:25:01 +0000
(23:25 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Tue, 15 Jun 2010 23:25:01 +0000
(23:25 +0000)
Steve Singer
contrib/pg_upgrade/option.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/option.c
b/contrib/pg_upgrade/option.c
index 83300a9e51e90c59b596823e67f7c6f0ef283513..a38a9a80fff0331ff131004fdb876fff40d89579 100644
(file)
--- a/
contrib/pg_upgrade/option.c
+++ b/
contrib/pg_upgrade/option.c
@@
-46,7
+46,7
@@
parseCommandLine(migratorContext *ctx, int argc, char *argv[])
{"verbose", no_argument, NULL, 'v'},
{NULL, 0, NULL, 0}
};
-
char
option; /* Command line option */
+
int
option; /* Command line option */
int optindex = 0; /* used by getopt_long */
int user_id;