Revision: 55527
http://sourceforge.net/p/brlcad/code/55527
Author: brlcad
Date: 2013-05-22 03:20:26 +0000 (Wed, 22 May 2013)
Log Message:
-----------
quell openindiana warning, unused onoff var
Modified Paths:
--------------
brlcad/trunk/src/libpkg/pkg.c
Modified: brlcad/trunk/src/libpkg/pkg.c
===================================================================
--- brlcad/trunk/src/libpkg/pkg.c 2013-05-21 21:39:32 UTC (rev 55526)
+++ brlcad/trunk/src/libpkg/pkg.c 2013-05-22 03:20:26 UTC (rev 55527)
@@ -734,7 +734,6 @@
pkg_getclient(int fd, const struct pkg_switch *switchp, void (*errlog) (char
*msg), int nodelay)
{
int s2;
- auto int onoff;
#ifdef HAVE_WINSOCK_H
WORD wVersionRequested; /* initialize Windows socket
networking, increment reference count */
WSADATA wsaData;
@@ -757,6 +756,7 @@
#ifdef FIONBIO
if (nodelay) {
+ int onoff;
onoff = 1;
if (ioctl(fd, FIONBIO, &onoff) < 0)
_pkg_perror(errlog, "pkg_getclient: FIONBIO 1");
@@ -793,10 +793,11 @@
} while (s2 < 0);
#ifdef FIONBIO
if (nodelay) {
- onoff = 0;
- if (ioctl(fd, FIONBIO, &onoff) < 0)
+ int onoff2;
+ onoff2 = 0;
+ if (ioctl(fd, FIONBIO, &onoff2) < 0)
_pkg_perror(errlog, "pkg_getclient: FIONBIO 2");
- if (ioctl(s2, FIONBIO, &onoff) < 0)
+ if (ioctl(s2, FIONBIO, &onoff2) < 0)
_pkg_perror(errlog, "pkg_getclient: FIONBIO 3");
}
#endif
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits