From: Paul Ramsey Date: Fri, 18 Mar 2011 19:43:25 +0000 (+0000) Subject: Jeff Adams: Changed variables we are storing getopt result in from char to int, since... X-Git-Tag: 2.0.0alpha1~1867 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec01ab6dc848c0500f70f360da9f6fbaf05819b0;p=postgis Jeff Adams: Changed variables we are storing getopt result in from char to int, since int is the return type from the getopt function. (#663) git-svn-id: http://svn.osgeo.org/postgis/trunk@6935 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql-cli.c b/loader/shp2pgsql-cli.c index 7da079b64..d10bdc82d 100644 --- a/loader/shp2pgsql-cli.c +++ b/loader/shp2pgsql-cli.c @@ -65,7 +65,7 @@ main (int argc, char **argv) SHPLOADERCONFIG *config; SHPLOADERSTATE *state; char *header, *footer, *record; - char c; + int c; int ret, i; #ifdef USE_NLS diff --git a/loader/shp2pgsql-gui.c b/loader/shp2pgsql-gui.c index ef41cf88c..038188592 100644 --- a/loader/shp2pgsql-gui.c +++ b/loader/shp2pgsql-gui.c @@ -2475,7 +2475,7 @@ usage() int main(int argc, char *argv[]) { - char c; + int c; #ifdef USE_NLS setlocale (LC_ALL, "");