Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Dec 2016 10:21:28 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r310587 - head/contrib/bsnmp/snmpd
Message-ID:  <201612261021.uBQALSFf038146@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Dec 26 10:21:28 2016
New Revision: 310587
URL: https://svnweb.freebsd.org/changeset/base/310587

Log:
  Fix definition for recv_dgram(..); it should be "ssize_t", not "int"
  
  I'm not sure why this wasn't flagged as an issue by the compiler, yet
  
  MFC after:	3 weeks
  X-MFC with:	r310586

Modified:
  head/contrib/bsnmp/snmpd/trans_udp.c

Modified: head/contrib/bsnmp/snmpd/trans_udp.c
==============================================================================
--- head/contrib/bsnmp/snmpd/trans_udp.c	Mon Dec 26 10:17:22 2016	(r310586)
+++ head/contrib/bsnmp/snmpd/trans_udp.c	Mon Dec 26 10:21:28 2016	(r310587)
@@ -236,7 +236,7 @@ check_priv_dgram(struct port_input *pi, 
  * Input from a datagram socket.
  * Each receive should return one datagram.
  */
-static int
+static ssize_t
 recv_dgram(struct port_input *pi, struct in_addr *laddr)
 {
 	u_char embuf[1000];



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