]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use consistent names
authorAlan T. DeKok <aland@freeradius.org>
Fri, 14 Aug 2015 19:58:16 +0000 (21:58 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 14 Aug 2015 19:58:16 +0000 (21:58 +0200)
src/main/realms.c

index 01795d3157e5361c217fbf8cf8868a87850c0a79..e58e78e7074ffcc95dc7374a7f719d5459e34636 100644 (file)
@@ -702,11 +702,11 @@ home_server_t *home_server_afrom_cs(TALLOC_CTX *ctx, realm_config_t *rc, CONF_SE
        }
 
        {
-               int type = IPPROTO_UDP;
+               int proto = IPPROTO_UDP;
 
-               if (home->proto_str) type = fr_str2int(home_proto, home->proto_str, -1);
+               if (home->proto_str) proto = fr_str2int(home_proto, home->proto_str, -1);
 
-               switch (type) {
+               switch (proto) {
                case IPPROTO_UDP:
                        home_servers_udp = true;
                        break;
@@ -728,7 +728,7 @@ home_server_t *home_server_afrom_cs(TALLOC_CTX *ctx, realm_config_t *rc, CONF_SE
                        goto error;
                }
 
-               home->proto = type;
+               home->proto = proto;
        }
 
        if (!home->server && rbtree_finddata(home_servers_byaddr, home)) {