return 0;
}
-static krb5_error_code random_string (krb5_context, char *, krb5_int32);
+static krb5_error_code random_string (krb5_context, char *, unsigned int);
/*
* Effects:
* random ccache names in a fixed size buffer. */
static krb5_error_code
-random_string (krb5_context context, char *string, krb5_int32 length)
+random_string (krb5_context context, char *string, unsigned int length)
{
static const unsigned char charlist[] =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
krb5_error_code err = 0;
unsigned char *bytes = NULL;
- krb5_int32 bytecount = length - 1;
+ unsigned int bytecount = length - 1;
if (!err) {
bytes = malloc (bytecount);
}
if (!err) {
- krb5_int32 i;
+ unsigned int i;
for (i = 0; i < bytecount; i++) {
string [i] = charlist[bytes[i] % (sizeof (charlist) - 1)];
}
return KRB5_OK;
}
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_mcc_get_flags(krb5_context context, krb5_ccache id, krb5_flags *flags)
{
*flags = 0;