Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/blacklist/bin one would think that I'd learn to...



details:   https://anonhg.NetBSD.org/src/rev/71ca8bebeaa8
branches:  trunk
changeset: 335878:71ca8bebeaa8
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 28 00:42:15 2015 +0000

description:
one would think that I'd learn to cast htons() by now...

diffstat:

 external/bsd/blacklist/bin/conf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2a4f49e93e32 -r 71ca8bebeaa8 external/bsd/blacklist/bin/conf.c
--- a/external/bsd/blacklist/bin/conf.c Wed Jan 28 00:30:25 2015 +0000
+++ b/external/bsd/blacklist/bin/conf.c Wed Jan 28 00:42:15 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.17 2015/01/27 20:16:11 christos Exp $       */
+/*     $NetBSD: conf.c,v 1.18 2015/01/28 00:42:15 christos Exp $       */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: conf.c,v 1.17 2015/01/27 20:16:11 christos Exp $");
+__RCSID("$NetBSD: conf.c,v 1.18 2015/01/28 00:42:15 christos Exp $");
 
 #include <stdio.h>
 #include <string.h>
@@ -608,7 +608,7 @@
                abort();
        }
 
-       *port = htons(c->c_port);
+       *port = htons((in_port_t)c->c_port);
        conf_apply_mask(addr, alen, c->c_lmask);
        if (c->c_lmask == -1)
                c->c_lmask = (int)(alen * 8);



Home | Main Index | Thread Index | Old Index