From affedd838146cc5985a2797619d7572d3edf8db0 Mon Sep 17 00:00:00 2001 From: Frank Benkstein Date: Sat, 17 Jan 2009 18:15:11 +0100 Subject: [PATCH] src/vlock-main.c: move authentication failure blurb into own variable --- src/vlock-main.c | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/vlock-main.c b/src/vlock-main.c index 6e7dcfe..975a430 100644 --- a/src/vlock-main.c +++ b/src/vlock-main.c @@ -40,6 +40,14 @@ #include "plugin.h" #endif +static const char *auth_failure_blurb = + "******************************************************************\n" + "*** You may not be able to able to unlock your terminal now. ***\n" + "*** ***\n" + "*** Log into another terminal and kill the vlock-main process. ***\n" + "******************************************************************\n" +; + static int auth_tries; static void auth_loop(const char *username) @@ -120,21 +128,7 @@ static void auth_loop(const char *username) VLOCK_AUTH_ERROR, VLOCK_AUTH_ERROR_FAILED)) { fputc('\n', stderr); - fprintf( - stderr, - "******************************************************************\n"); - fprintf( - stderr, - "*** You may not be able to able to unlock your terminal now. ***\n"); - fprintf( - stderr, - "*** ***\n"); - fprintf( - stderr, - "*** Log into another terminal and kill the vlock-main process. ***\n"); - fprintf( - stderr, - "******************************************************************\n"); + fputs(auth_failure_blurb, stderr); fputc('\n', stderr); sleep(3); } -- 2.11.4.GIT