From d88a1c0003b01751f04adca4941c7a90d49b7dd8 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Tue, 2 Feb 2010 04:14:29 +0000 Subject: [PATCH] astyle recent change git-svn-id: http://svn.osgeo.org/postgis/trunk@5187 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/shp2pgsql-cli.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/loader/shp2pgsql-cli.c b/loader/shp2pgsql-cli.c index ba264a03f..8cb24baa6 100644 --- a/loader/shp2pgsql-cli.c +++ b/loader/shp2pgsql-cli.c @@ -194,20 +194,20 @@ main (int argc, char **argv) strcpy(config->table, argv[optind]); } } - + /* If the table parameter is not provided, use the shape file name as a proxy value. Strip out the .shp and the leading path information first. */ - if( config->shp_file && config->table == NULL) + if ( config->shp_file && config->table == NULL) { char *shp_file = strdup(config->shp_file); char *ptr; - for( ptr = shp_file + strlen(shp_file); ptr >= shp_file; ptr-- ) + for ( ptr = shp_file + strlen(shp_file); ptr >= shp_file; ptr-- ) { - if( *ptr == '.' ) + if ( *ptr == '.' ) { *ptr = '\0'; } - if( *ptr == '/' || *ptr == '\\' ) + if ( *ptr == '/' || *ptr == '\\' ) { ptr++; break; @@ -221,7 +221,7 @@ main (int argc, char **argv) /* Transform table name to lower case if no quoting specified */ if (!config->quoteidentifiers) { - if( config->table ) + if ( config->table ) strtolower(config->table); if ( config->schema ) strtolower(config->schema); @@ -269,7 +269,7 @@ main (int argc, char **argv) free(header); /* If we are not in "prepare" mode, go ahead and write out the data. */ - if( state->config->opt != 'p' ) + if ( state->config->opt != 'p' ) { /* If in COPY mode, output the COPY statement */ @@ -329,7 +329,7 @@ main (int argc, char **argv) printf("\\.\n"); } - + /* Print the footer to stdout */ ret = ShpLoaderGetSQLFooter(state, &footer); if (ret != SHPLOADEROK) -- 2.50.1