summaryrefslogtreecommitdiff
path: root/src/openvpn/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvpn/console.c')
-rw-r--r--src/openvpn/console.c25
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 */