Update of /cvsroot/dhcp-agent/dhcp-agent
In directory usw-pr-cvs1:/tmp/cvs-serv8002
Modified Files:
dhcp-client.c
Log Message:
improved and updated usage output
Index: dhcp-client.c
===================================================================
RCS file: /cvsroot/dhcp-agent/dhcp-agent/dhcp-client.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** dhcp-client.c 14 Oct 2002 15:52:33 -0000 1.46
--- dhcp-client.c 22 Oct 2002 00:59:41 -0000 1.47
***************
*** 115,119 ****
static void usage(char *s)
{
! printf("usage: %s [-cpavkwt] [-d directory] [-i interface name] [ -m mac address ]\n", s);
exit(0);
}
--- 115,121 ----
static void usage(char *s)
{
! printf("usage: %s [-cpavkwt] [-l verbosity level] [-d directory]\n", s);
! printf("usage: %-*s [-i interface name] [ -m mac address ]\n", strlen(s), " ");
! printf("usage: %-*s [-H hostname]\n", strlen(s), " ");
exit(0);
}
***************
*** 241,246 ****
case STATE_FATAL_ERROR:
! ERROR_MESSAGE("encountered fatal error. I'm giving up.");
! do_shutdown(dc);
case STATE_DISCOVER_OFFER:
--- 243,247 ----
case STATE_FATAL_ERROR:
! FATAL_MESSAGE("encountered fatal error. I'm giving up.");
case STATE_DISCOVER_OFFER:
|