Changeset a62ceaf in mainline for uspace/app/nterm/nterm.c


Ignore:
Timestamp:
2016-02-29T19:19:19Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
129b92c6
Parents:
5147ff1
Message:

Need better interfaces for handling internet host and host:port specifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nterm/nterm.c

    r5147ff1 ra62ceaf  
    104104static void print_syntax(void)
    105105{
    106         printf("syntax: nterm <host> <port>\n");
     106        printf("syntax: nterm <host>:<port>\n");
    107107}
    108108
     
    112112        int rc;
    113113
    114         if (argc != 3) {
     114        if (argc != 2) {
    115115                print_syntax();
    116116                return 1;
    117117        }
    118118
    119         rc = conn_open(argv[1], argv[2]);
     119        rc = conn_open(argv[1]);
    120120        if (rc != EOK) {
    121121                printf("Error connecting.\n");
Note: See TracChangeset for help on using the changeset viewer.