Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2007 11:04:14 GMT
From:      Matus Harvan <mharvan@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 125704 for review
Message-ID:  <200708261104.l7QB4EjN041702@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=125704

Change 125704 by mharvan@mharvan_bike-planet on 2007/08/26 11:04:06

	cleanup for UDP catchall plugin

Affected files ...

.. //depot/projects/soc2007/mharvan-mtund/mtund.src/plugin_udp_catchall.c#6 edit

Differences ...

==== //depot/projects/soc2007/mharvan-mtund/mtund.src/plugin_udp_catchall.c#6 (text+ko) ====

@@ -488,15 +488,12 @@
 	/* send the data */
 	nwrite = send(conn->fd, data, len, 0);
 
-	if (nwrite >= 0)
+	/* error checking */
+	if (nwrite == len) {
 		*consumed = nwrite;
-	else
+		return (SEND_PKT_SENT);
+	} else {
 		*consumed = 0;
-
-	/* error checking */
-	if (nwrite == len)
-		return (SEND_PKT_SENT);
-	else {
 		warn("plugin_send: send returned %d", nwrite);
 		plugin_report(pl, clid, REPORT_ERROR_SEND);
 		return (SEND_ERROR);



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