diff options
author | Neil Conway <neilc@samurai.com> | 2006-03-18 22:10:11 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-03-18 22:10:11 +0000 |
commit | e78be57d19c06a2bbc007acc992ee8e244cbf69e (patch) | |
tree | d8d00797ef32beeaff1d7cfbcc328a3eeeec1959 | |
parent | 8bf221b09b09d9e84bc63749e14e6701164a2e4b (diff) | |
download | postgresql-e78be57d19c06a2bbc007acc992ee8e244cbf69e.tar.gz postgresql-e78be57d19c06a2bbc007acc992ee8e244cbf69e.zip |
The call to DNSServiceRegistrationCreate in postmaster.c does incorrect
byte-swapping on the port number which causes the call to fail on Intel
Macs.
This patch uses htons() instead of htonl() and fixes this bug.
Ashley Clark
-rw-r--r-- | src/backend/postmaster/postmaster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index f5dcdc0a8c8..0a226dba279 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.475.2.3 2006/02/01 00:32:05 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.475.2.4 2006/03/18 22:10:11 neilc Exp $ * * NOTES * @@ -771,7 +771,7 @@ PostmasterMain(int argc, char *argv[]) DNSServiceRegistrationCreate(bonjour_name, "_postgresql._tcp.", "", - htonl(PostPortNumber), + htons(PostPortNumber), "", (DNSServiceRegistrationReply) reg_reply, NULL); |