Changeset 4573 for trunk/Ohana/src/opihi/pantasks/controller_host.c
- Timestamp:
- Jul 16, 2005, 6:01:28 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/controller_host.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/controller_host.c
r4539 r4573 7 7 IOBuffer buffer; 8 8 9 if (argc != 3) {9 if (argc != 2) { 10 10 fprintf (stderr, "USAGE: controller host (hostname)\n"); 11 11 return (FALSE); … … 15 15 StartController (); 16 16 17 sprintf (command, "host %s", argv[ 2]);17 sprintf (command, "host %s", argv[1]); 18 18 InitIOBuffer (&buffer, 0x100); 19 19 status = ControllerCommand (command, CONTROLLER_PROMPT, &buffer); … … 32 32 case CONTROLLER_GOOD: 33 33 fprintf (stderr, "controller command sent\n"); 34 fwrite (buffer.buffer, 1, buffer.Nbuffer, stderr); 35 fprintf (stderr, "\n Nbytes received: %d\n", buffer.Nbuffer); 34 36 return (TRUE); 35 37
Note:
See TracChangeset
for help on using the changeset viewer.
