Changeset e948fde in mainline for uspace/app/dnsres/dnsres.c


Ignore:
Timestamp:
2013-09-29T21:43:49Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a324d99
Parents:
f023251
Message:

dnsr_name2host should use ip_ver_t instead of AF.

File:
1 edited

Legend:

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

    rf023251 re948fde  
    5454        }
    5555       
    56         uint16_t af;
     56        uint16_t ver;
    5757        char *hname;
    5858       
     
    6363                }
    6464               
    65                 af = AF_INET;
     65                ver = ip_v4;
    6666                hname = argv[2];
    6767        } else if (str_cmp(argv[1], "-6") == 0) {
     
    7171                }
    7272               
    73                 af = AF_INET6;
     73                ver = ip_v6;
    7474                hname = argv[2];
    7575        } else {
    76                 af = 0;
     76                ver = ip_any;
    7777                hname = argv[1];
    7878        }
    7979       
    8080        dnsr_hostinfo_t *hinfo;
    81         int rc = dnsr_name2host(hname, &hinfo, af);
     81        int rc = dnsr_name2host(hname, &hinfo, ver);
    8282        if (rc != EOK) {
    8383                printf("%s: Error resolving '%s'.\n", NAME, hname);
Note: See TracChangeset for help on using the changeset viewer.