It would be better to change the type of "use" to int in that function. I will submit a PR to do that. (We actually see a warning in our regular builds of locate_kdc.c, but didn't catch it when integrating PR #481 recently.)