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 | 3a2bbdb05ca6a6996e424c9fb225cb0d53804125 (patch) | |
tree | f29063da5bec4caf3853d49a22a09c8619eebd21 /src/openvpn/console.c | |
parent | d53dba59e78da865c4fe820386ff2f4f76925f3b (diff) |
New upstream version 2.4.0upstream/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 */ |