From 1e8c030b03df3c5c1ae54cf9f98c89edf633d661 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Fri, 1 Apr 2016 15:31:59 -0700 Subject: [PATCH] Make indent --- geojson.c | 46 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/geojson.c b/geojson.c index 111430a..63ec019 100644 --- a/geojson.c +++ b/geojson.c @@ -2193,31 +2193,29 @@ int main(int argc, char **argv) { layer = optarg; break; - case 'L': - { - char *cp = strchr(optarg, ':'); - if (cp == NULL || cp == optarg) { - fprintf(stderr, "%s: -L requires layername:file\n", argv[0]); - exit(EXIT_FAILURE); - } - struct source *src = malloc(sizeof(struct source)); - if (src == NULL) { - perror("Out of memory"); - exit(EXIT_FAILURE); - } - - src->layer = strdup(optarg); - src->file = strdup(cp + 1); - if (src->layer == NULL || src->file == NULL) { - perror("Out of memory"); - exit(EXIT_FAILURE); - } - src->layer[cp - optarg] = '\0'; - src->next = sources; - sources = src; - nsources++; + case 'L': { + char *cp = strchr(optarg, ':'); + if (cp == NULL || cp == optarg) { + fprintf(stderr, "%s: -L requires layername:file\n", argv[0]); + exit(EXIT_FAILURE); } - break; + struct source *src = malloc(sizeof(struct source)); + if (src == NULL) { + perror("Out of memory"); + exit(EXIT_FAILURE); + } + + src->layer = strdup(optarg); + src->file = strdup(cp + 1); + if (src->layer == NULL || src->file == NULL) { + perror("Out of memory"); + exit(EXIT_FAILURE); + } + src->layer[cp - optarg] = '\0'; + src->next = sources; + sources = src; + nsources++; + } break; case 'z': maxzoom = atoi(optarg);