diff options
author | Alberto Gonzalez Iniesta <agi@inittab.org> | 2016-12-27 18:25:47 +0100 |
---|---|---|
committer | Alberto Gonzalez Iniesta <agi@inittab.org> | 2016-12-27 18:25:47 +0100 |
commit | 79f3537f69e125f19f59c36aa090120a63186a54 (patch) | |
tree | 2089a3b7dac990841dbc2e4d9b2f535b82dbb0af /src/openvpn/console.c | |
parent | f2137fedb30cb87448eb03b2f288920df6187571 (diff) | |
parent | 3a2bbdb05ca6a6996e424c9fb225cb0d53804125 (diff) |
Merge tag 'upstream/2.4.0'
Upstream version 2.4.0
Diffstat (limited to 'src/openvpn/console.c')
-rw-r--r-- | src/openvpn/console.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/openvpn/console.c b/src/openvpn/console.c index c3bb7c3..90c8a94 100644 --- a/src/openvpn/console.c +++ b/src/openvpn/console.c @@ -5,9 +5,9 @@ * packet encryption, packet authentication, and * packet compression. * - * Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net> + * Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <sales@openvpn.net> * Copyright (C) 2014-2015 David Sommerseth <davids@redhat.com> - * Copyright (C) 2016 David Sommerseth <davids@openvpn.net> + * Copyright (C) 2016-2017 David Sommerseth <davids@openvpn.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 @@ -44,19 +44,21 @@ struct _query_user query_user[QUERY_USER_NUMSLOTS]; /* GLOBAL */ -void query_user_clear() +void +query_user_clear() { int i; - for( i = 0; i < QUERY_USER_NUMSLOTS; i++ ) { - CLEAR(query_user[i]); + for (i = 0; i < QUERY_USER_NUMSLOTS; i++) { + CLEAR(query_user[i]); } } -void query_user_add(char *prompt, size_t prompt_len, - char *resp, size_t resp_len, - bool echo) +void +query_user_add(char *prompt, size_t prompt_len, + char *resp, size_t resp_len, + bool echo) { int i; @@ -67,9 +69,10 @@ void query_user_add(char *prompt, size_t prompt_len, /* Seek to the last unused slot */ for (i = 0; i < QUERY_USER_NUMSLOTS; i++) { - if( query_user[i].prompt == NULL ) { - break; - } + if (query_user[i].prompt == NULL) + { + break; + } } ASSERT( i < QUERY_USER_NUMSLOTS ); /* Unlikely, but we want to panic if it happens */ |