Cast krb5_error_code to int to avoid warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22988 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -147,7 +147,7 @@ krb5_get_error_message(krb5_context context, krb5_error_code code)
|
||||
if (cstr)
|
||||
return strdup(cstr);
|
||||
|
||||
if (asprintf(&str, "<unknown error: %d>", code) == -1)
|
||||
if (asprintf(&str, "<unknown error: %d>", (int)code) == -1)
|
||||
return NULL;
|
||||
|
||||
return str;
|
||||
|
Reference in New Issue
Block a user