diff options
| author | Jason Copenhaver <jcopenha@typedef.org> | 2015-01-16 16:50:24 -0300 | 
|---|---|---|
| committer | dequis <dx@dxzone.com.ar> | 2015-01-16 16:50:24 -0300 | 
| commit | 25c4c78e2ddad482dfc9d5a104f76325fcc2f8e5 (patch) | |
| tree | 4b6628d38e54a55b6059948ff8bad6b3c13b719b /lib | |
| parent | 7549d0074aa4917e62106ac285b05baa1e76c1e9 (diff) | |
Fix compiler warnings on Cygwin and Mac OS X.
* Don't use PIE/PIC on Cygwin/Darwin unless specified as these
  platforms don't support it.
* Cleanup warnings for 'make check' build.
* Fix the type issue for getsockopt calls.
* Fix enum warnings in Yahoo libs on Mac OS X.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ns_parse.c | 2 | ||||
| -rw-r--r-- | lib/proxy.c | 8 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/lib/ns_parse.c b/lib/ns_parse.c index ba45d513..0462b67e 100644 --- a/lib/ns_parse.c +++ b/lib/ns_parse.c @@ -18,7 +18,7 @@  #include "bitlbee.h"  #ifndef lint -static const char rcsid[] = "$Id: ns_parse.c,v 1.10 2009/01/23 19:59:16 each Exp $"; +//static const char rcsid[] = "$Id: ns_parse.c,v 1.10 2009/01/23 19:59:16 each Exp $";  #endif  #ifdef HAVE_RESOLV_A diff --git a/lib/proxy.c b/lib/proxy.c index 86bb0dcc..2adcde3b 100644 --- a/lib/proxy.c +++ b/lib/proxy.c @@ -65,7 +65,7 @@ static int proxy_connect_none(const char *host, unsigned short port_, struct PHB  static gboolean gaim_io_connected(gpointer data, gint source, b_input_condition cond)  {  	struct PHB *phb = data; -	unsigned int len; +	socklen_t len;  	int error = ETIMEDOUT;  	len = sizeof(error); @@ -213,7 +213,7 @@ static gboolean http_canwrite(gpointer data, gint source, b_input_condition cond  {  	char cmd[384];  	struct PHB *phb = data; -	unsigned int len; +	socklen_t len;  	int error = ETIMEDOUT;  	if (phb->inpa > 0)  		b_event_remove(phb->inpa); @@ -308,7 +308,7 @@ static gboolean s4_canwrite(gpointer data, gint source, b_input_condition cond)  	unsigned char packet[12];  	struct hostent *hp;  	struct PHB *phb = data; -	unsigned int len; +	socklen_t len;  	int error = ETIMEDOUT;  	if (phb->inpa > 0)  		b_event_remove(phb->inpa); @@ -500,7 +500,7 @@ static gboolean s5_canwrite(gpointer data, gint source, b_input_condition cond)  	unsigned char buf[512];  	int i;  	struct PHB *phb = data; -	unsigned int len; +	socklen_t len;  	int error = ETIMEDOUT;  	if (phb->inpa > 0)  		b_event_remove(phb->inpa); | 
