/[hydra]/hydra/src/sublog.c
ViewVC logotype

Diff of /hydra/src/sublog.c

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

revision 1.1.1.1 by nmav, Sat Sep 21 13:53:54 2002 UTC revision 1.2 by nmav, Mon Oct 21 18:46:26 2002 UTC
# Line 32  Line 32 
32  #include <sys/socket.h>  #include <sys/socket.h>
33  #include <netinet/in.h>  #include <netinet/in.h>
34  #include <arpa/inet.h>  #include <arpa/inet.h>
35    #include "compat.h"
36    
37  int open_pipe_fd(char *command);  int open_pipe_fd(char *command);
38  int open_net_fd(char *spec);  int open_net_fd(char *spec);
# Line 80  int open_net_fd(char *spec) Line 81  int open_net_fd(char *spec)
81      sa.sin_port = htons(port);      sa.sin_port = htons(port);
82      he = gethostbyname(spec);      he = gethostbyname(spec);
83      if (!he) {      if (!he) {
84    #ifdef HAVE_HERROR
85          herror("open_net_fd");          herror("open_net_fd");
86    #endif
87          return -1;          return -1;
88      }      }
89      memcpy(&sa.sin_addr, he->h_addr, he->h_length);      memcpy(&sa.sin_addr, he->h_addr, he->h_length);

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26