Module Name: src
Committed By: roy
Date: Tue Apr 11 18:20:03 UTC 2017
Modified Files:
src/share/man/man4: route.4
Log Message:
Cast sizeof to socklen_t as pointed out by kre@
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/share/man/man4/route.4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man4/route.4
diff -u src/share/man/man4/route.4:1.29 src/share/man/man4/route.4:1.30
--- src/share/man/man4/route.4:1.29 Tue Apr 11 13:55:54 2017
+++ src/share/man/man4/route.4 Tue Apr 11 18:20:03 2017
@@ -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 @@ For example, to only get specific messag
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