summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rbootd/utils.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1995-11-16 14:23:28 +0000
committerderaadt <deraadt@openbsd.org>1995-11-16 14:23:28 +0000
commit540eaef7284315df2a481092c867d72c06044a3b (patch)
treef8221c794df34d43fb12ee7d50fa5d19a98a1b2e /usr.sbin/rbootd/utils.c
parentAdd `1.1' to Nx macro; from netbsd (diff)
downloadwireguard-openbsd-540eaef7284315df2a481092c867d72c06044a3b.tar.xz
wireguard-openbsd-540eaef7284315df2a481092c867d72c06044a3b.zip
repair byte order botches; from scottr@plexus.com via netbsd
Diffstat (limited to 'usr.sbin/rbootd/utils.c')
-rw-r--r--usr.sbin/rbootd/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rbootd/utils.c b/usr.sbin/rbootd/utils.c
index 5f891613d8a..eb2ffa9d9ac 100644
--- a/usr.sbin/rbootd/utils.c
+++ b/usr.sbin/rbootd/utils.c
@@ -1,4 +1,4 @@
-/* $NetBSD: utils.c,v 1.5 1995/10/06 05:12:22 thorpej Exp $ */
+/* $NetBSD: utils.c,v 1.5.2.1 1995/11/14 08:45:46 thorpej Exp $ */
/*
* Copyright (c) 1988, 1992 The University of Utah and the Center
@@ -48,7 +48,7 @@
#ifndef lint
/*static char sccsid[] = "@(#)utils.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$NetBSD: utils.c,v 1.5 1995/10/06 05:12:22 thorpej Exp $";
+static char rcsid[] = "$NetBSD: utils.c,v 1.5.2.1 1995/11/14 08:45:46 thorpej Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -166,7 +166,7 @@ DispPkt(rconn, direct)
(void) fprintf(DbgFp, ReadFmt, rmp->r_rrpl.rmp_retcode,
t, ntohs(rmp->r_rrpl.rmp_session));
(void) fprintf(DbgFp, "\t\tNoOfBytesSent: %d\n",
- ntohs(rconn->rmplen) - ntohs(RMPREADSIZE(0)));
+ rconn->rmplen - RMPREADSIZE(0));
break;
case RMP_BOOT_DONE: /* boot complete */
(void) fprintf(DbgFp, "\tBoot Complete:\n");