http://se.aminet.net/pub/Linux/distributions/slackware/slackware-10.1/source/xap...
[xscreensaver] / driver / test-passwd.c
index 9ef2cfe190daeb7fd488bffc989975b5819b85f2..d47fb4ae5bef9dd796d1a54a9b9429e88ca28264 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1998, 2001 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1998-2004 Jamie Zawinski <jwz@jwz.org>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -90,6 +90,12 @@ idle_timer (XtPointer closure, XtIntervalId *id)
 }
 
 
+#ifdef __GNUC__
+ __extension__     /* shut up about "string length is greater than the length
+                      ISO C89 compilers are required to support" when including
+                      the .ad file... */
+#endif
+
 static char *fallback[] = {
 #include "XScreenSaver_ad.h"
  0
@@ -140,7 +146,7 @@ main (int argc, char **argv)
 
   hack_uid (si);
 
-  if (! lock_init (argc, argv, si->prefs.verbose_p))
+  if (! lock_init (argc, argv, True))
     {
       si->locking_disabled_p = True;
       si->nolock_reason = "error getting password";
@@ -171,7 +177,6 @@ main (int argc, char **argv)
       XtGetApplicationNameAndClass (si->dpy, &progname, &progclass);
 
       load_init_file (&si->prefs);
-
     }
 
   p->verbose_p = True;