Skip to content

Commit 8e311e9

Browse files
committed
Apply astyle updates from newer version of astyle
1 parent e5a3fe7 commit 8e311e9

2 files changed

Lines changed: 16 additions & 15 deletions

File tree

src/mod_tile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,8 @@ static int tile_handler_json(request_rec *r)
13511351
return OK;
13521352
}
13531353

1354-
static int _get_stats_copy(request_rec *r, tile_server_conf *scfg, stats_data **stats_copy) {
1354+
static int _get_stats_copy(request_rec *r, tile_server_conf *scfg, stats_data **stats_copy)
1355+
{
13551356
stats_data *stats;
13561357
unsigned long sizeof_config_elements;
13571358

src/renderd_config.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -278,24 +278,24 @@ void process_map_sections(dictionary *ini, const char *config_file_name, xmlconf
278278
ini_type_copy = strndup(ini_type, INILINE_MAX);
279279

280280
for (ini_type_part = strtok_r(ini_type_copy, " ", &ini_type_context);
281-
ini_type_part;
282-
ini_type_part = strtok_r(NULL, " ", &ini_type_context)) {
281+
ini_type_part;
282+
ini_type_part = strtok_r(NULL, " ", &ini_type_context)) {
283283
switch (ini_type_part_num) {
284-
case 0:
285-
copy_string(ini_type_part, &maps_dest[map_section_num].file_extension, ini_type_part_maxlen);
286-
break;
284+
case 0:
285+
copy_string(ini_type_part, &maps_dest[map_section_num].file_extension, ini_type_part_maxlen);
286+
break;
287287

288-
case 1:
289-
copy_string(ini_type_part, &maps_dest[map_section_num].mime_type, ini_type_part_maxlen);
290-
break;
288+
case 1:
289+
copy_string(ini_type_part, &maps_dest[map_section_num].mime_type, ini_type_part_maxlen);
290+
break;
291291

292-
case 2:
293-
copy_string(ini_type_part, &maps_dest[map_section_num].output_format, ini_type_part_maxlen);
294-
break;
292+
case 2:
293+
copy_string(ini_type_part, &maps_dest[map_section_num].output_format, ini_type_part_maxlen);
294+
break;
295295

296-
default:
297-
g_logger(G_LOG_LEVEL_CRITICAL, "Specified type (%s) has too many parts, there must be no more than 3, e.g., 'png image/png png256'.", ini_type);
298-
exit(7);
296+
default:
297+
g_logger(G_LOG_LEVEL_CRITICAL, "Specified type (%s) has too many parts, there must be no more than 3, e.g., 'png image/png png256'.", ini_type);
298+
exit(7);
299299
}
300300

301301
ini_type_part_num++;

0 commit comments

Comments
 (0)