Changeset dc95342 in mainline for uspace/srv/net/dnsres/dnsres.c
- Timestamp:
- 2013-04-22T06:45:49Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 31e9fe0
- Parents:
- 7262f89
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsres/dnsres.c
r7262f89 rdc95342 60 60 int main(int argc, char *argv[]) 61 61 { 62 dns_host_info_t hinfo;62 dns_host_info_t *hinfo; 63 63 char *astr; 64 64 int rc; … … 69 69 70 70 if (rc == EOK) { 71 rc = addr_format(&hinfo .addr, &astr);71 rc = addr_format(&hinfo->addr, &astr); 72 72 if (rc != EOK) { 73 dns_hostinfo_destroy(hinfo); 73 74 printf("Out of memory\n"); 74 75 return ENOMEM; 75 76 } 76 77 77 printf("hostname: %s\n", hinfo .name);78 printf("hostname: %s\n", hinfo->name); 78 79 printf("IPv4 address: %s\n", astr); 79 80 free(astr); 81 dns_hostinfo_destroy(hinfo); 80 82 } 81 83
Note:
See TracChangeset
for help on using the changeset viewer.