]> granicus.if.org Git - postgis/commitdiff
astyle recent change
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 2 Feb 2010 04:14:29 +0000 (04:14 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 2 Feb 2010 04:14:29 +0000 (04:14 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5187 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-cli.c

index ba264a03f1ad138a9fca9d0a34dcf9290c49ad36..8cb24baa66530278760f211e1396ae560d961706 100644 (file)
@@ -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)