Am 14.07.20 um 14:32 schrieb Antonio Quartulli: > can we please add a variable for the index and make all these long lines > saner? Now they are really ugly: > > int idx = defer_state->cur_handler_index; > while (cc_succeeded > && client_connect_handlers[idx].main != NULL) > > and also the lines in the loop itself.
we can but we need to do add defer_state->cur_handler_index = idx; in that case so the idx is saved for the next time the function is called from a deferred context. Or you make it int* idx and do client_connect_handlers[*idx] Arne
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel