LPWORD lpw;
LPWSTR lpwsz;
LRESULT ret;
- int nchar, i, pwid;
+ int nchar, i;
+ size_t pwid;
hgbl = GlobalAlloc(GMEM_ZEROINIT, 4096);
if (!hgbl)
multi_field_dialog(HWND hParent, char * preface, int n, struct textField tb[])
{
extern HINSTANCE hLeashInst;
- int maxwidth = 0;
+ size_t maxwidth = 0;
int numlines = 0;
int len;
char * plines[16], *p = preface ? preface : "";
int displayErrors
)
{
- LPCSTR functionName;
char aname[ANAME_SZ];
char inst[INST_SZ];
char realm[REALM_SZ];
}
#endif /* NO_AFS */
- cleanup:
return leash_error_message("Ticket initialization failed.",
rcL,
rc5, rcA, 0,
acquire_tkt_send_msg(krb5_context ctx, const char * title,
const char * ccachename,
krb5_principal desiredKrb5Principal,
- const char * out_ccname, int out_cclen)
+ char * out_ccname, int out_cclen)
{
krb5_error_code err;
HWND hNetIdMgr;
GetEnvironmentVariable("KRB5CCNAME", ccachename, sizeof(ccachename));
gle = GetLastError();
if ( ((gle == ERROR_ENVVAR_NOT_FOUND) || !ccachename[0]) && context ) {
- char * ccdef = pkrb5_cc_default_name(ctx);
+ const char * ccdef = pkrb5_cc_default_name(ctx);
SetEnvironmentVariable("KRB5CCNAME", ccdef ? ccdef : NULL);
GetEnvironmentVariable("KRB5CCNAME", ccachename, sizeof(ccachename));
}
krb5_principal princ = NULL;
char *mslsa_principal = NULL;
char ms_realm[128] = "", *def_realm = NULL, *r;
- int i;
+ size_t i;
if (code = pkrb5_cc_resolve(ctx, "MSLSA:", &mslsa_ccache))
goto cleanup;
GetEnvironmentVariable("KRB5CCNAME", ccachename, sizeof(ccachename));
gle = GetLastError();
if ( ((gle == ERROR_ENVVAR_NOT_FOUND) || !ccachename[0]) && context ) {
- char * ccdef = pkrb5_cc_default_name(ctx);
+ const char * ccdef = pkrb5_cc_default_name(ctx);
SetEnvironmentVariable("KRB5CCNAME", ccdef ? ccdef : NULL);
GetEnvironmentVariable("KRB5CCNAME", ccachename, sizeof(ccachename));
}