Skip to content

Commit b62f458

Browse files
committed
Fix up code style
1 parent 82e1f4d commit b62f458

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/oping.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -833,16 +833,16 @@ static int read_options (int argc, char **argv) /* {{{ */
833833
case 'U':
834834
opt_utf8 = 1;
835835
break;
836-
case 'C':
837-
{
838-
int new_columns = atoi(optarg);
839-
if (new_columns > 0)
840-
opt_columns = new_columns;
841-
else
842-
fprintf (stderr, "Ignoring invalid number of columns: %s\n",
843-
optarg);
844-
break;
845-
}
836+
case 'C':
837+
{
838+
int new_columns = atoi(optarg);
839+
if (new_columns > 0)
840+
opt_columns = new_columns;
841+
else
842+
fprintf (stderr, "Ignoring invalid number of columns: %s\n",
843+
optarg);
844+
break;
845+
}
846846
#endif
847847
case 'b':
848848
opt_bell = 1;
@@ -1368,8 +1368,8 @@ static int create_windows (pingobj_t *ping) /* {{{ */
13681368
if ((height < 1) || (width < 1))
13691369
return (EINVAL);
13701370

1371-
/* calculate the number of box rows, rounding up */
1372-
int box_rows_count = (host_num+opt_columns-1) / opt_columns;
1371+
/* calculate the number of box rows, rounding up */
1372+
int box_rows_count = (host_num+opt_columns-1) / opt_columns;
13731373

13741374
main_win_height = height - (box_height * box_rows_count);
13751375
if (main_win != NULL )
@@ -1389,7 +1389,7 @@ static int create_windows (pingobj_t *ping) /* {{{ */
13891389
wmove (main_win, /* y = */ main_win_height - 1, /* x = */ 0);
13901390
wrefresh (main_win);
13911391

1392-
width = width / opt_columns;
1392+
width = width / opt_columns;
13931393

13941394
for (iter = ping_iterator_get (ping);
13951395
iter != NULL;

0 commit comments

Comments
 (0)