/[gxemul]/trunk/src/net/net.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/net/net.c

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

revision 39 by dpavlin, Mon Oct 8 16:21:53 2007 UTC revision 40 by dpavlin, Mon Oct 8 16:22:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: net.c,v 1.8 2007/03/24 06:40:16 debug Exp $   *  $Id: net.c,v 1.9 2007/04/28 00:10:11 debug Exp $
29   *   *
30   *  Emulated network.   *  Emulated network.
31   *   *
# Line 789  struct net *net_init(struct emul *emul, Line 789  struct net *net_init(struct emul *emul,
789                          exit(1);                          exit(1);
790                  }                  }
791    
792                  memset((char *)&si_self, sizeof(si_self), 0);                  memset((char *)&si_self, 0, sizeof(si_self));
793                  si_self.sin_family = AF_INET;                  si_self.sin_family = AF_INET;
794                  si_self.sin_port = htons(local_port);                  si_self.sin_port = htons(local_port);
795                  si_self.sin_addr.s_addr = htonl(INADDR_ANY);                  si_self.sin_addr.s_addr = htonl(INADDR_ANY);

Legend:
Removed from v.39  
changed lines
  Added in v.40

  ViewVC Help
Powered by ViewVC 1.1.26