Added missing casts to suppress compiler warnings

This commit is contained in:
goldsimon
2010-02-05 10:08:41 +00:00
parent 5d360a6711
commit c58dfa2156
4 changed files with 8 additions and 8 deletions

View File

@@ -1093,7 +1093,7 @@ get_secret(int unit, char *client, char *server, char *secret, int *secret_len,
return 0;
}
len = strlen(ppp_settings.passwd);
len = (int)strlen(ppp_settings.passwd);
if (len > MAXSECRETLEN) {
AUTHDEBUG((LOG_ERR, "Secret for %s on %s is too long\n", client, server));
len = MAXSECRETLEN;