Source-Changes-HG archive

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

[src/trunk]: src/sys/netkey less warning on userland compilation.



details:   https://anonhg.NetBSD.org/src/rev/336c6409a2db
branches:  trunk
changeset: 474221:336c6409a2db
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Jul 01 20:10:27 1999 +0000

description:
less warning on userland compilation.

diffstat:

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

diffs (24 lines):

diff -r 43334cdff95a -r 336c6409a2db sys/netkey/key_debug.c
--- a/sys/netkey/key_debug.c    Thu Jul 01 20:09:57 1999 +0000
+++ b/sys/netkey/key_debug.c    Thu Jul 01 20:10:27 1999 +0000
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 
-/* KAME @(#)$Id: key_debug.c,v 1.2 1999/07/01 08:12:59 itojun Exp $ */
+/* KAME @(#)$Id: key_debug.c,v 1.3 1999/07/01 20:10:27 itojun Exp $ */
 
 #ifdef _KERNEL
 # define KERNEL
@@ -315,8 +315,9 @@
        if (ext == NULL)
                panic("kdebug_sadb_sa: NULL pointer was passed.\n");
 
-       printf("sadb_sa{ spi=%lu replay=%u state=%u\n",
-           ntohl(sa->sadb_sa_spi), sa->sadb_sa_replay, sa->sadb_sa_state);
+       printf("sadb_sa{ spi=%u replay=%u state=%u\n",
+           (u_int32_t)ntohl(sa->sadb_sa_spi), sa->sadb_sa_replay,
+           sa->sadb_sa_state);
        printf("  auth=%u encrypt=%u flags=0x%08x }\n",
            sa->sadb_sa_auth, sa->sadb_sa_encrypt, sa->sadb_sa_flags);
 



Home | Main Index | Thread Index | Old Index