]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
compile warnings
authorAlan T. DeKok <aland@freeradius.org>
Wed, 9 Sep 2015 19:42:44 +0000 (15:42 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 9 Sep 2015 19:42:44 +0000 (15:42 -0400)
src/main/radattr.c

index c6194324a14c30cf31219b3fc2827d6ee2867db8..2a6c59b391ea95d8d66686c9c1cbbae0dc54d860 100644 (file)
@@ -928,6 +928,7 @@ int main(int argc, char *argv[])
        bool report = false;
        char const *radius_dir = RADDBDIR;
        char const *dict_dir = DICTDIR;
+       int *inst = &c;
 
        cf_new_escape = true;   /* fix the tests */
 
@@ -977,7 +978,7 @@ int main(int argc, char *argv[])
                return 1;
        }
 
-       if (xlat_register("test", xlat_test, NULL, "") < 0) {
+       if (xlat_register("test", xlat_test, NULL, inst) < 0) {
                fprintf(stderr, "Failed registering xlat");
                return 1;
        }