Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Feb 2018 03:02:30 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329115 - head/share/man/man4
Message-ID:  <201802110302.w1B32U5i010639@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Sun Feb 11 03:02:29 2018
New Revision: 329115
URL: https://svnweb.freebsd.org/changeset/base/329115

Log:
  Fix typo in dtrace_tcp(4)
  
  Using args[2]->tcps_state as-documented results in error:
  operator -> cannot be applied to pointer to type "void"
  
  This error is accurate as the synopsis for tcp:::state-change is:
  tcp:::state-change(void *, csinfo_t *, void *, tcpsinfo_t *, void *,
      tcplsinfo_t *);
  
  args[2] refers to the third argument which is always NULL (as-
  documented). The to-state for the TCP connection state transition is
  actually in the fourth argument, args[3]->tcps_state.

Modified:
  head/share/man/man4/dtrace_tcp.4

Modified: head/share/man/man4/dtrace_tcp.4
==============================================================================
--- head/share/man/man4/dtrace_tcp.4	Sun Feb 11 02:27:50 2018	(r329114)
+++ head/share/man/man4/dtrace_tcp.4	Sun Feb 11 03:02:29 2018	(r329115)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd April 15, 2016
+.Dd February 10, 2018
 .Dt DTRACE_TCP 4
 .Os
 .Sh NAME
@@ -135,7 +135,7 @@ Its first, third and fifth arguments are currently alw
 .Dv NULL .
 Its last argument describes the from-state in the transition, and the to-state
 can be obtained from
-.Dv args[2]->tcps_state .
+.Dv args[3]->tcps_state .
 .Sh ARGUMENTS
 The
 .Vt pktinfo_t



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802110302.w1B32U5i010639>