Make indent

This commit is contained in:
Eric Fischer
2016-04-01 15:31:59 -07:00
parent 8cc844c9dd
commit 1e8c030b03
+22 -24
View File
@@ -2193,31 +2193,29 @@ int main(int argc, char **argv) {
layer = optarg; layer = optarg;
break; break;
case 'L': case 'L': {
{ char *cp = strchr(optarg, ':');
char *cp = strchr(optarg, ':'); if (cp == NULL || cp == optarg) {
if (cp == NULL || cp == optarg) { fprintf(stderr, "%s: -L requires layername:file\n", argv[0]);
fprintf(stderr, "%s: -L requires layername:file\n", argv[0]); exit(EXIT_FAILURE);
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++;
} }
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': case 'z':
maxzoom = atoi(optarg); maxzoom = atoi(optarg);