/[jscoverage]/trunk/http-exchange.c
ViewVC logotype

Diff of /trunk/http-exchange.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 116 by siliconforks, Sat May 31 21:42:36 2008 UTC revision 125 by siliconforks, Mon Jun 2 17:52:38 2008 UTC
# Line 25  Line 25 
25  #include <ctype.h>  #include <ctype.h>
26  #include <string.h>  #include <string.h>
27    
 #include <arpa/inet.h>  
   
28  #include "util.h"  #include "util.h"
29    
30  struct HTTPExchange {  struct HTTPExchange {
# Line 303  Line 301 
301        if (result != 0) {        if (result != 0) {
302          return result;          return result;
303        }        }
       /* FIXME: is this thread-safe??? */  
304        const char * a = inet_ntoa(peer.sin_addr);        const char * a = inet_ntoa(peer.sin_addr);
305        char * value;        char * value;
306        xasprintf(&value, "%s:%u", a, ntohs(peer.sin_port));        xasprintf(&value, "%s:%u", a, ntohs(peer.sin_port));

Legend:
Removed from v.116  
changed lines
  Added in v.125

  ViewVC Help
Powered by ViewVC 1.1.24