]> err.no Git - systemd/commitdiff
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 7a6498d254e70ede7026b71725e50ffba6d2537f..50aec3403ae4dcbf70ba0f99455007d5a6e9d382 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 6330369b4f20e4cddaef0ce375b6a1a097fbf4de..5162f62eeec95cd52f8b60c93fbab200d3c39ad1 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;