Rename function
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 23 Sep 2009 07:53:54 +0000 (09:53 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 23 Sep 2009 07:53:54 +0000 (09:53 +0200)
src/pazpar2_config.c

index 84fad66..baf834d 100644 (file)
@@ -627,8 +627,8 @@ static void inherit_server_settings(struct conf_server *server)
     }
 }
 
-static struct conf_server *parse_server(struct conf_config *config,
-                                        NMEM nmem, xmlNode *node)
+static struct conf_server *server_create(struct conf_config *config,
+                                         NMEM nmem, xmlNode *node)
 {
     xmlNode *n;
     struct conf_server *server = nmem_malloc(nmem, sizeof(struct conf_server));
@@ -821,7 +821,7 @@ static int parse_config(struct conf_config *config, xmlNode *root)
             continue;
         if (!strcmp((const char *) n->name, "server"))
         {
-            struct conf_server *tmp = parse_server(config, config->nmem, n);
+            struct conf_server *tmp = server_create(config, config->nmem, n);
             if (!tmp)
                 return -1;
             tmp->next = config->servers;