/[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 5668 by michael, Tue Jan 6 21:05:44 2015 UTC revision 5669 by michael, Wed Mar 11 16:42:33 2015 UTC
# Line 146  opm_remote_create(const char *ip) Line 146  opm_remote_create(const char *ip)
146    OPM_REMOTE_T *ret;    OPM_REMOTE_T *ret;
147    
148    ret = xcalloc(sizeof *ret);    ret = xcalloc(sizeof *ret);
   
   /* Do initializations */  
   if (ip == NULL)  
     return NULL;  
   
149    ret->ip = libopm_xstrdup(ip);    ret->ip = libopm_xstrdup(ip);
   
   ret->port          = 0;  
   ret->protocol      = 0;  
   ret->bytes_read    = 0;  
   ret->data          = NULL;  
   
150    ret->protocols = libopm_list_create();  /* Setup protocol list */    ret->protocols = libopm_list_create();  /* Setup protocol list */
151    
152    return ret;    return ret;

Legend:
Removed from v.5668  
changed lines
  Added in v.5669

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