Changeset 8181
- Timestamp:
- Aug 4, 2006, 4:04:27 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/host.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/host.c
r7917 r8181 7 7 Host *host; 8 8 9 if (argc != 3) { 10 gprint (GP_LOG, "USAGE: host (command) (hostname)\n"); 11 return (FALSE); 12 } 9 if (argc != 3) goto usage; 13 10 14 11 if (!strcasecmp (argv[1], "ADD")) { … … 49 46 N = FindNamedHost (argv[2], Ns); 50 47 host = GetHost (Ns, N); 51 CheckHost (host); 48 if (CheckHost (host)) { 49 if (VerboseMode()) gprint (GP_ERR, "host %s is on\n", host[0].hostname); 50 } 52 51 return (TRUE); 53 52 case PCONTROL_HOST_DOWN: … … 98 97 } 99 98 100 gprint (GP_ERR, "unknown host command %s\n", argv[1]); 101 gprint (GP_ERR, "valid options: xxx\n"); 99 usage: 100 gprint (GP_LOG, "USAGE: host (command) (hostname)\n"); 101 gprint (GP_ERR, " valid commands: add, on, retry, check, off, delete\n"); 102 102 return (FALSE); 103 103 }
Note:
See TracChangeset
for help on using the changeset viewer.
