- Timestamp:
- 2015-01-17T20:13:19Z (10 years ago)
- Branches:
- master
- Children:
- e26aa72
- Parents:
- 1065dd4 (diff), 664bac3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/misc.c
r1065dd4 reb4ad8d 780 780 return NULL; 781 781 } 782 783 /* Takes a string, truncates it where it's safe, returns the new length */ 784 int truncate_utf8( char *string, int maxlen ) 785 { 786 char *end; 787 g_utf8_validate( (const gchar *) string, maxlen, (const gchar **) &end ); 788 *end = '\0'; 789 return end - string; 790 } -
lib/misc.h
r1065dd4 reb4ad8d 150 150 G_MODULE_EXPORT char **split_command_parts( char *command, int limit ); 151 151 G_MODULE_EXPORT char *get_rfc822_header( const char *text, const char *header, int len ); 152 G_MODULE_EXPORT int truncate_utf8( char *string, int maxlen ); 152 153 153 154 #endif -
lib/ns_parse.c
r1065dd4 reb4ad8d 19 19 20 20 #ifndef lint 21 static const char rcsid[] = "$Id: ns_parse.c,v 1.10 2009/01/23 19:59:16 each Exp $";21 //static const char rcsid[] = "$Id: ns_parse.c,v 1.10 2009/01/23 19:59:16 each Exp $"; 22 22 #endif 23 23 -
lib/proxy.c
r1065dd4 reb4ad8d 66 66 { 67 67 struct PHB *phb = data; 68 unsigned int len;68 socklen_t len; 69 69 int error = ETIMEDOUT; 70 70 len = sizeof(error); … … 86 86 closesocket(source); 87 87 b_event_remove(phb->inpa); 88 phb->inpa = 0; 88 89 if( phb->proxy_func ) 89 90 phb->proxy_func(phb->proxy_data, -1, B_EV_IO_READ); … … 97 98 sock_make_blocking(source); 98 99 b_event_remove(phb->inpa); 100 phb->inpa = 0; 99 101 if( phb->proxy_func ) 100 102 phb->proxy_func(phb->proxy_data, source, B_EV_IO_READ); … … 174 176 /* Connecting to HTTP proxies */ 175 177 176 #define HTTP_GOODSTRING "HTTP/1.0 200 Connection established"177 #define HTTP_GOODSTRING2 "HTTP/1.1 200 Connection established"178 #define HTTP_GOODSTRING "HTTP/1.0 200" 179 #define HTTP_GOODSTRING2 "HTTP/1.1 200" 178 180 179 181 static gboolean http_canread(gpointer data, gint source, b_input_condition cond) … … 214 216 char cmd[384]; 215 217 struct PHB *phb = data; 216 unsigned int len;218 socklen_t len; 217 219 int error = ETIMEDOUT; 218 220 if (phb->inpa > 0) … … 309 311 struct hostent *hp; 310 312 struct PHB *phb = data; 311 unsigned int len;313 socklen_t len; 312 314 int error = ETIMEDOUT; 313 315 if (phb->inpa > 0) … … 501 503 int i; 502 504 struct PHB *phb = data; 503 unsigned int len;505 socklen_t len; 504 506 int error = ETIMEDOUT; 505 507 if (phb->inpa > 0)
Note: See TracChangeset
for help on using the changeset viewer.