Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man4 Cast sizeof to socklen_t as pointed out by kre@
details: https://anonhg.NetBSD.org/src/rev/03612f2392eb
branches: trunk
changeset: 352831:03612f2392eb
user: roy <roy%NetBSD.org@localhost>
date: Tue Apr 11 18:20:03 2017 +0000
description:
Cast sizeof to socklen_t as pointed out by kre@
diffstat:
share/man/man4/route.4 | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 555cb1666a5e -r 03612f2392eb share/man/man4/route.4
--- a/share/man/man4/route.4 Tue Apr 11 18:04:08 2017 +0000
+++ b/share/man/man4/route.4 Tue Apr 11 18:20:03 2017 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: route.4,v 1.29 2017/04/11 13:55:54 roy Exp $
+.\" $NetBSD: route.4,v 1.30 2017/04/11 18:20:03 roy Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)route.4 8.6 (Berkeley) 4/19/94
.\"
-.Dd March 5, 2017
+.Dd April 11, 2017
.Dt ROUTE 4
.Os
.Sh NAME
@@ -187,7 +187,7 @@
unsigned char rtfilter[] = { RTM_IFINFO, RTM_IFANNOUNCE };
if (setsockopt(routefd, PF_ROUTE, RO_MSGFILTER,
- &rtfilter, sizeof(rtfilter)) == -1)
+ &rtfilter, (socklen_t)sizeof(rtfilter)) == -1)
err(1, "setsockopt(RO_MSGFILTER)");
.Ed
.Pp
Home |
Main Index |
Thread Index |
Old Index