Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 24cb6ab

Browse files
committed
Fix storage of getopt() return, should be 'int', for pg_upgrade.
Steve Singer
1 parent c0989c6 commit 24cb6ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/option.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ parseCommandLine(migratorContext *ctx, int argc, char *argv[])
4646
{"verbose", no_argument, NULL, 'v'},
4747
{NULL, 0, NULL, 0}
4848
};
49-
char option; /* Command line option */
49+
int option; /* Command line option */
5050
int optindex = 0; /* used by getopt_long */
5151
int user_id;
5252

0 commit comments

Comments
 (0)