Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netkey ntohl() doesn't return long, so cast it.



details:   https://anonhg.NetBSD.org/src/rev/9308ab8c240b
branches:  trunk
changeset: 474394:9308ab8c240b
user:      cjs <cjs%NetBSD.org@localhost>
date:      Mon Jul 05 08:15:39 1999 +0000

description:
ntohl() doesn't return long, so cast it.

diffstat:

 sys/netkey/key_debug.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 4870581749ca -r 9308ab8c240b sys/netkey/key_debug.c
--- a/sys/netkey/key_debug.c    Mon Jul 05 07:24:38 1999 +0000
+++ b/sys/netkey/key_debug.c    Mon Jul 05 08:15:39 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key_debug.c,v 1.5 1999/07/03 21:32:48 thorpej Exp $    */
+/*     $NetBSD: key_debug.c,v 1.6 1999/07/05 08:15:39 cjs Exp $        */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 
-/* KAME @(#)$Id: key_debug.c,v 1.5 1999/07/03 21:32:48 thorpej Exp $ */
+/* KAME @(#)$Id: key_debug.c,v 1.6 1999/07/05 08:15:39 cjs Exp $ */
 
 #ifdef _KERNEL
 # define KERNEL
@@ -541,7 +541,8 @@
 
        printf("  refcnt=%u state=%u type=%u auth=%u enc=%u\n",
            sa->refcnt, sa->state, sa->type, sa->alg_auth, sa->alg_enc);
-       printf("  spi=%lu flags=%u\n", ntohl(sa->spi), sa->flags);
+       printf("  spi=%lu flags=%u\n", (unsigned long) ntohl(sa->spi),
+           sa->flags);
 
        if (sa->key_auth != NULL)
                kdebug_sadb_key((struct sadb_ext *)sa->key_auth);



Home | Main Index | Thread Index | Old Index