PERFORCE change 125704 for review

Matus Harvan mharvan at FreeBSD.org
Sun Aug 26 04:04:15 PDT 2007


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

Change 125704 by mharvan at 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);


More information about the p4-projects mailing list