summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-19 16:32:15 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-19 16:32:15 -0800
commit64db372b4988e4862acb328492b7bbe14851ebe0 (patch)
tree84f551f74e6089904c216dfa3d01ab456331c002
parent64e773800f70a4e9ebc0e606150beaff9b839fd9 (diff)
Combine usage message into a single string
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--sessreg.c12
1 files 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;