NUT - UPS Monitoring software

Nik Clayton nik at freebsd.org
Thu Aug 31 11:51:04 BST 2000


--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Aug 31, 2000 at 11:23:03AM +0100, Simon Clayton wrote:
> csocket.cc: In method `int CSocket::Accept()':
> csocket.cc:88: passing `int *' as argument 3 of `accept(int, sockaddr *,
> socklen_t *)' changes signedness
> *** Error code 1

That's not really a fatal error, "make -i" should work around it.  In fact,
on my -current system the port builds despite the error (so I can't exactly
replicate the problem you're having).

Alternatively, try putting the two attached patches in the patches/
directory which should fix this, and one other problem.

If these patches solve the problem for you then please submit them using
send-pr so that they can be integrated in to the ports tree.

N
-- 
Internet connection, $19.95 a month.  Computer, $799.95.  Modem, $149.95.
Telephone line, $24.95 a month.  Software, free.  USENET transmission,
hundreds if not thousands of dollars.  Thinking before posting, priceless.
Somethings in life you can't buy.  For everything else, there's MasterCard.
  -- Graham Reed, in the Scary Devil Monastery

--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ab

--- upsmonitor.cc.old	Thu Aug 31 11:47:39 2000
+++ upsmonitor.cc	Thu Aug 31 11:47:48 2000
@@ -364,7 +364,7 @@
           else if(tElapseTime >= 60)
             // begin shutdown warnings only after power has been down
             // for at least 60 seconds
-            syslog(LOG_EMERG,"Power Failure - %d seconds to shutdown!",(m_iRetryLimit - tElapseTime));
+            syslog(LOG_EMERG,"Power Failure - %ld seconds to shutdown!",(m_iRetryLimit - tElapseTime));
           break;
 
       } // end switch

--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ac

--- csocket.h.old	Thu Aug 31 11:45:19 2000
+++ csocket.h	Thu Aug 31 11:45:34 2000
@@ -94,7 +94,7 @@
     int m_fdSocketNormal;                 // named stream socket descriptor - use for client/server exchange
     int m_fdSocketServer;                 // server socket - used by server to listen for connections
     int m_iLocalAddrLen;                  // local socket address length
-    int m_iRemoteAddrLen;                 // local socket address length
+    socklen_t m_iRemoteAddrLen;                 // local socket address length
     struct sockaddr_un m_saunLocal;       // local socket address
     struct sockaddr_un m_saunRemote;      // remote socket address
     char m_szSocketPath[MAX_PATHNAME];    // named stream socket path

--3MwIy2ne0vdjdPXF--




More information about the Ukfreebsd mailing list