summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2003-09-11 18:28:33 +0000
committerwtc%netscape.com <devnull@localhost>2003-09-11 18:28:33 +0000
commit095762ccee4378799315f7b9c021b755b9aa68f6 (patch)
tree27bf997d7f1513a96490c981d63dd73475c34cdc
parent242e1d15955e58032d6a44bb595f1f614753d84b (diff)
downloadnspr-hg-095762ccee4378799315f7b9c021b755b9aa68f6.tar.gz
Use the current PR_GetAddrInfoByName prototype.
Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r--pr/tests/getai.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pr/tests/getai.c b/pr/tests/getai.c
index 11094bce..3e17736c 100644
--- a/pr/tests/getai.c
+++ b/pr/tests/getai.c
@@ -43,7 +43,8 @@ int main(int argc, char *argv[])
void *iter;
PRNetAddr addr;
- if (PR_GetAddrInfoByName(argv[1], 0, 0, &ai) == PR_FAILURE) {
+ ai = PR_GetAddrInfoByName(argv[1], PR_AF_UNSPEC, PR_AI_ADDRCONFIG);
+ if (ai == NULL) {
fprintf(stderr, "PR_GetAddrInfoByName failed: (%d, %d)\n",
PR_GetError(), PR_GetOSError());
exit(1);