Difference for socket/init.c from version 1.23 to 1.24


version 1.23 version 1.24
Line 1
 
Line 1
   
 /*  /*
  * static char *rcsid_init_c =   * static char *rcsid_init_c =
  *    "$Id: init.c,v 1.23 2001/12/31 08:36:04 mwedel Exp $";   *    "$Id: init.c,v 1.24 2002/05/19 03:55:48 mwedel Exp $";
  */   */
   
 /*  /*
Line 103
 
Line 102
     ns->ext2 = 0;      ns->ext2 = 0;
     ns->ext_title_flag = 1;      ns->ext_title_flag = 1;
     ns->skillexp = 0;      ns->skillexp = 0;
     ns->map1cmd = 0;      ns->mapmode = Map0Cmd;
     ns->map2cmd = 0;  
     ns->darkness = 1;      ns->darkness = 1;
     ns->newanim = 0;      ns->newanim = 0;
     ns->status = Ns_Add;      ns->status = Ns_Add;
Line 230
 
Line 228
         defined(__sun__) || defined(linux) || defined(SVR4) || defined(__FreeBSD__) || \          defined(__sun__) || defined(linux) || defined(SVR4) || defined(__FreeBSD__) || \
  defined(__OpenBSD__) || defined(WIN32) /* ---win32 add this here */   defined(__OpenBSD__) || defined(WIN32) /* ---win32 add this here */
     {      {
  char tmp =1;   int tmp =1;
   
  if(setsockopt(init_sockets[0].fd,SOL_SOCKET,SO_REUSEADDR, &tmp, sizeof(&tmp))) {   if(setsockopt(init_sockets[0].fd,SOL_SOCKET,SO_REUSEADDR, &tmp, sizeof(tmp))) {
      perror("error on setsockopt REUSEADDR");       perror("error on setsockopt REUSEADDR");
      LOG(llevError,"error on setsockopt REUSEADDR\n");       LOG(llevError,"error on setsockopt REUSEADDR\n");
  }   }


Legend:
line(s) removed in v.1.23 
line(s) changed
 line(s) added in v.1.24

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:34