X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Ftest-passwd.c;h=22ae01eb7664ed3b4d3e8e1ca53671a3f73e7dd8;hb=e4fa2ac140f7bc56571373a7b7eb585fa4500e38;hp=988b00126c7f411303a4a76c5d9fe207cfbfb32e;hpb=8eb2873d7054e705c4e83f22d18c40946a9e2529;p=xscreensaver diff --git a/driver/test-passwd.c b/driver/test-passwd.c index 988b0012..22ae01eb 100644 --- a/driver/test-passwd.c +++ b/driver/test-passwd.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1998, 2001 Jamie Zawinski +/* xscreensaver, Copyright (c) 1998, 2001, 2003 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -52,11 +52,14 @@ void start_notice_events_timer (saver_info *si, Window w, Bool b) {} Bool handle_clientmessage (saver_info *si, XEvent *e, Bool u) { return False; } int BadWindow_ehandler (Display *dpy, XErrorEvent *error) { exit(1); } const char *signal_name(int signal) { return "???"; } -void restore_real_vroot (saver_info *si) {} +Bool restore_real_vroot (saver_info *si) { return False; } void store_saver_status (saver_info *si) {} void saver_exit (saver_info *si, int status, const char *core) { exit(status);} int move_mouse_grab (saver_info *si, Window to, Cursor c, int ts) { return 0; } int mouse_screen (saver_info *si) { return 0; } +void check_for_leaks (const char *where) { } +void exec_command (const char *shell, const char *command, int nice) { } +void shutdown_stderr (saver_info *si) { } const char *blurb(void) { return progname; } Atom XA_SCREENSAVER, XA_DEMO, XA_PREFS; @@ -137,7 +140,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"; @@ -168,7 +171,6 @@ main (int argc, char **argv) XtGetApplicationNameAndClass (si->dpy, &progname, &progclass); load_init_file (&si->prefs); - } p->verbose_p = True;