chiark / gitweb /
ask-password: use default timeout
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Apr 2011 00:30:43 +0000 (02:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 16 Apr 2011 00:03:34 +0000 (02:03 +0200)
man/systemd-ask-password.xml
src/ask-password.c

index 7a6498d..50aec34 100644 (file)
                                 <term><option>--timeout=</option></term>
 
                                 <listitem><para>Specify the query
-                                timeout in seconds.</para></listitem>
+                                timeout in seconds. Defaults to
+                                3min.</para></listitem>
                         </varlistentry>
 
                         <varlistentry>
index 6330369..5162f62 100644 (file)
 #include "util.h"
 #include "strv.h"
 #include "ask-password-api.h"
+#include "def.h"
 
 static const char *arg_icon = NULL;
 static const char *arg_message = NULL;
 static bool arg_use_tty = true;
-static usec_t arg_timeout = 60 * USEC_PER_SEC;
+static usec_t arg_timeout = DEFAULT_TIMEOUT_USEC;
 static bool arg_accept_cached = false;
 static bool arg_multiple = false;