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

Diff of /hopm/branches/1.1.x/src/libopm/src/config.c

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

revision 8130 by michael, Thu Jul 2 13:10:18 2015 UTC revision 8131 by michael, Mon Apr 3 18:26:06 2017 UTC
# Line 88  libopm_config_create(void) Line 88  libopm_config_create(void)
88          break;          break;
89    
90        case OPM_TYPE_ADDRESS:        case OPM_TYPE_ADDRESS:
91          ret->vars[i] = xcalloc(sizeof(opm_sockaddr));          ret->vars[i] = xcalloc(sizeof(struct sockaddr_in));
92          break;          break;
93    
94        case OPM_TYPE_STRINGLIST:        case OPM_TYPE_STRINGLIST:
# Line 185  libopm_config_set(OPM_CONFIG_T *config, Line 185  libopm_config_set(OPM_CONFIG_T *config,
185        break;        break;
186    
187      case OPM_TYPE_ADDRESS:      case OPM_TYPE_ADDRESS:
188        if (inet_pton(AF_INET, value, &(((opm_sockaddr *)config->vars[key])->sa4.sin_addr)) <= 0)        if (inet_pton(AF_INET, value, &(((struct sockaddr_in *)config->vars[key])->sin_addr)) <= 0)
189          return OPM_ERR_BADVALUE;  /* Return appropriate err code */          return OPM_ERR_BADVALUE;  /* Return appropriate err code */
190    
191        break;        break;

Legend:
Removed from v.8130  
changed lines
  Added in v.8131

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