diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-03-10 01:36:38 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-03-10 01:36:38 +0000 |
commit | b27ee90689cb9998eb1ad612e07888078700700c (patch) | |
tree | ff00eeba47bf9bbff5808284e85250d55e7e91d1 /usr.bin/sup | |
parent | ecc145b5f7504c19807f9cb8f2b0b8ec603a985a (diff) |
Use correct byte order when printing out port numbers.
OK deraadt@, bruno rohee, hshoexer@, jaredy@
Diffstat (limited to 'usr.bin/sup')
-rw-r--r-- | usr.bin/sup/src/scm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sup/src/scm.c b/usr.bin/sup/src/scm.c index 61a8f0990d8..f6fad5cade4 100644 --- a/usr.bin/sup/src/scm.c +++ b/usr.bin/sup/src/scm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scm.c,v 1.17 2004/01/12 04:22:23 beck Exp $ */ +/* $OpenBSD: scm.c,v 1.18 2005/03/10 01:36:37 cloder Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University @@ -307,7 +307,7 @@ servicesetup(server) /* listen for clients */ return (scmerr(-1, "Can't find %s server description", server)); (void) scmerr(-1, "%s/tcp: unknown service: using port %d", - server,port); + server, ntohs(port)); } else port = sp->s_port; endservent(); @@ -450,7 +450,7 @@ request(server, hostname, retry) /* connect to server */ server)); if (!silent) (void) scmerr (-1, "%s/tcp: unknown service: using port %d", - server, port); + server, ntohs(port)); } else port = sp->s_port; (void) memset(&sin, 0, sizeof(sin)); |