From 64db372b4988e4862acb328492b7bbe14851ebe0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 19 Jan 2013 16:32:15 -0800 Subject: Combine usage message into a single string Signed-off-by: Alan Coopersmith --- sessreg.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sessreg.c b/sessreg.c index f6c624a..1ba0d89 100644 --- a/sessreg.c +++ b/sessreg.c @@ -130,13 +130,15 @@ static int usage (int x) { if (x) { - fprintf (stderr, "%s: usage %s {-a -d} [-w wtmp-file] [-u utmp-file]", program_name, program_name); + fprintf (stderr, + "%s: usage %s {-a -d} [-w wtmp-file] [-u utmp-file]" #ifdef USE_LASTLOG - fprintf (stderr, " [-L lastlog-file]"); + " [-L lastlog-file]" #endif - fprintf (stderr, "\n"); - fprintf (stderr, " [-t ttys-file] [-l line-name] [-h host-name]\n"); - fprintf (stderr, " [-s slot-number] [-x servers-file] user-name\n"); + "\n" + " [-t ttys-file] [-l line-name] [-h host-name]\n" + " [-s slot-number] [-x servers-file] user-name\n", + program_name, program_name); exit (1); } return x; -- cgit v1.2.3