@@ -833,16 +833,16 @@ static int read_options (int argc, char **argv) /* {{{ */
833
833
case 'U' :
834
834
opt_utf8 = 1 ;
835
835
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
+ }
846
846
#endif
847
847
case 'b' :
848
848
opt_bell = 1 ;
@@ -1368,8 +1368,8 @@ static int create_windows (pingobj_t *ping) /* {{{ */
1368
1368
if ((height < 1 ) || (width < 1 ))
1369
1369
return (EINVAL );
1370
1370
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 ;
1373
1373
1374
1374
main_win_height = height - (box_height * box_rows_count );
1375
1375
if (main_win != NULL )
@@ -1389,7 +1389,7 @@ static int create_windows (pingobj_t *ping) /* {{{ */
1389
1389
wmove (main_win , /* y = */ main_win_height - 1 , /* x = */ 0 );
1390
1390
wrefresh (main_win );
1391
1391
1392
- width = width / opt_columns ;
1392
+ width = width / opt_columns ;
1393
1393
1394
1394
for (iter = ping_iterator_get (ping );
1395
1395
iter != NULL ;
0 commit comments