/[svn]/hopm/branches/1.0.x/src/libopm/src/libopm.c
ViewVC logotype

Diff of /hopm/branches/1.0.x/src/libopm/src/libopm.c

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

revision 5913 by michael, Tue May 5 18:32:36 2015 UTC revision 5914 by michael, Tue May 5 18:41:52 2015 UTC
# Line 114  opm_create(void) Line 114  opm_create(void)
114    ret->scans = libopm_list_create();    ret->scans = libopm_list_create();
115    ret->queue = libopm_list_create();    ret->queue = libopm_list_create();
116    ret->protocols = libopm_list_create();    ret->protocols = libopm_list_create();
   ret->fd_use = 0;  
117    
118    /* Setup callbacks */    /* Setup callbacks */
119    ret->callbacks = xcalloc(sizeof(OPM_CALLBACK_T) * CBLEN);    ret->callbacks = xcalloc(sizeof(OPM_CALLBACK_T) * CBLEN);
120    
   for (i = 0; i < CBLEN; i++)  
   {  
     ret->callbacks[i].func = NULL;  
     ret->callbacks[i].data = NULL;  
   }  
   
121    return ret;    return ret;
122  }  }
123    
# Line 686  libopm_connection_create(void) Line 679  libopm_connection_create(void)
679    OPM_CONNECTION_T *ret;    OPM_CONNECTION_T *ret;
680    
681    ret = xcalloc(sizeof *ret);    ret = xcalloc(sizeof *ret);
682      ret->state = OPM_STATE_UNESTABLISHED;
   ret->fd         = 0;  
   ret->bytes_read = 0;  
   ret->readlen    = 0;  
   ret->protocol   = 0;  
   ret->port       = 0;  
   
   ret->state      = OPM_STATE_UNESTABLISHED;  
683    
684    return ret;    return ret;
685  }  }

Legend:
Removed from v.5913  
changed lines
  Added in v.5914

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28