added missing byte swap and fixed comment

This commit is contained in:
Jeff Hill
1998-04-10 23:14:54 +00:00
parent fbba753e9e
commit 363115921d
+2 -2
View File
@@ -198,10 +198,10 @@ LOCAL int parseDirectoryFP (FILE *pf, const char *pFileName)
return -1;
}
ipa.sin_port = (aitUint16) portNumber;
ipa.sin_port = htons((aitUint16) portNumber);
}
else {
ipa.sin_port = 0u; // will default to this server's port
ipa.sin_port = 0u; // use the default CA server port
}
pPVI = new pvInfo (pvNameStr, ipa);