diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-19 16:32:15 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-19 16:32:15 -0800 |
commit | 64db372b4988e4862acb328492b7bbe14851ebe0 (patch) | |
tree | 84f551f74e6089904c216dfa3d01ab456331c002 | |
parent | 64e773800f70a4e9ebc0e606150beaff9b839fd9 (diff) |
Combine usage message into a single string
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | sessreg.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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; |