@@ -208,8 +208,8 @@ rsock_init_inetsock(
208208 VALUE self , VALUE remote_host , VALUE remote_serv ,
209209 VALUE local_host , VALUE local_serv , int type ,
210210 VALUE resolv_timeout , VALUE connect_timeout , VALUE open_timeout ,
211- VALUE _fast_fallback , VALUE _test_mode_settings
212- ) {
211+ VALUE _fast_fallback , VALUE _test_mode_settings )
212+ {
213213 if (!NIL_P (open_timeout ) && (!NIL_P (resolv_timeout ) || !NIL_P (connect_timeout ))) {
214214 rb_raise (rb_eArgError , "Cannot specify open_timeout along with connect_timeout or resolv_timeout" );
215215 }
@@ -423,8 +423,8 @@ select_expires_at(
423423 struct timeval * connection_attempt_delay ,
424424 struct timeval * user_specified_resolv_timeout_at ,
425425 struct timeval * user_specified_connect_timeout_at ,
426- struct timeval * user_specified_open_timeout_at
427- ) {
426+ struct timeval * user_specified_open_timeout_at )
427+ {
428428 if (any_addrinfos (resolution_store )) {
429429 struct timeval * delay ;
430430 delay = resolution_delay ? resolution_delay : connection_attempt_delay ;
@@ -526,7 +526,8 @@ in_progress_fds(int fds_size)
526526}
527527
528528static void
529- remove_connection_attempt_fd (int * fds , int * fds_size , int removing_fd ) {
529+ remove_connection_attempt_fd (int * fds , int * fds_size , int removing_fd )
530+ {
530531 int i , j ;
531532
532533 for (i = 0 ; i < * fds_size ; i ++ ) {
@@ -1283,8 +1284,8 @@ rsock_init_inetsock(
12831284 VALUE self , VALUE remote_host , VALUE remote_serv ,
12841285 VALUE local_host , VALUE local_serv , int type ,
12851286 VALUE resolv_timeout , VALUE connect_timeout , VALUE open_timeout ,
1286- VALUE fast_fallback , VALUE test_mode_settings
1287- ) {
1287+ VALUE fast_fallback , VALUE test_mode_settings )
1288+ {
12881289 if (!NIL_P (open_timeout ) && (!NIL_P (resolv_timeout ) || !NIL_P (connect_timeout ))) {
12891290 rb_raise (rb_eArgError , "Cannot specify open_timeout along with connect_timeout or resolv_timeout" );
12901291 }
@@ -1315,7 +1316,7 @@ rsock_init_inetsock(
13151316 );
13161317
13171318 struct addrinfo * tmp_p = local_res -> ai ;
1318- for (tmp_p ; tmp_p != NULL ; tmp_p = tmp_p -> ai_next ) {
1319+ for (; tmp_p != NULL ; tmp_p = tmp_p -> ai_next ) {
13191320 if (target_families [0 ] == 0 && tmp_p -> ai_family == AF_INET6 ) {
13201321 target_families [0 ] = AF_INET6 ;
13211322 resolving_family_size ++ ;
0 commit comments