Module Name: src Committed By: christos Date: Wed Jan 28 00:42:15 UTC 2015
Modified Files: src/external/bsd/blacklist/bin: conf.c Log Message: one would think that I'd learn to cast htons() by now... To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/external/bsd/blacklist/bin/conf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/blacklist/bin/conf.c diff -u src/external/bsd/blacklist/bin/conf.c:1.17 src/external/bsd/blacklist/bin/conf.c:1.18 --- src/external/bsd/blacklist/bin/conf.c:1.17 Tue Jan 27 15:16:11 2015 +++ src/external/bsd/blacklist/bin/conf.c Tue Jan 27 19:42:15 2015 @@ -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 @@ conf_addr_set(struct conf *c, const stru 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);