svn commit: r310587 - head/contrib/bsnmp/snmpd
Ngie Cooper
ngie at FreeBSD.org
Mon Dec 26 10:21:29 UTC 2016
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];
More information about the svn-src-head
mailing list