static char *mydomain = NULL;
if (!mydomain)
yp_get_default_domain(&mydomain);
- if (mydomain && innetgr(file_host,remote,user,mydomain))
+ if (mydomain && innetgr(file_host,(char *)remote,(char *)user,mydomain))
host_ok = True;
}
#else
return NT_STATUS_NO_SUCH_USER;
}
- nt_status = sam_password_ok(sampass, user_info, server_info->session_key);
+ nt_status = sam_password_ok(sampass, user_info, (char *)(server_info->session_key));
if NT_STATUS_IS_OK(nt_status) {
nt_status = sam_account_ok(sampass, user_info);
/* encrypt the password with the challenge */
memcpy(challenge, chal1.data + 24, 8);
- SMBencrypt(pass, challenge,lmhash);
- SMBNTencrypt(pass, challenge,nthash);
+ SMBencrypt((unsigned char *)pass, challenge,lmhash);
+ SMBNTencrypt((unsigned char *)pass, challenge,nthash);
#if 0
file_save("nthash.dat", nthash, 24);
} ;
-/*@observer@*/ /*@null@*/ static const char *const
+/*@observer@*/ /*@null@*/ static const char *
getTableTranslationDomain(const struct poptOption *table)
{
const struct poptOption *opt;
return NULL;
}
-/*@observer@*/ /*@null@*/ static const char *const
+/*@observer@*/ /*@null@*/ static const char *
getArgDescrip(const struct poptOption * opt, const char *translation_domain)
{
if (!(opt->argInfo & POPT_ARG_MASK)) return NULL;
static char *mydomain = NULL;
if (!mydomain)
yp_get_default_domain(&mydomain);
- if (mydomain && innetgr(file_host,remote,user,mydomain))
+ if (mydomain && innetgr(file_host,(char *)remote,(char *)user,mydomain))
host_ok = True;
}
#else
return NT_STATUS_NO_SUCH_USER;
}
- nt_status = sam_password_ok(sampass, user_info, server_info->session_key);
+ nt_status = sam_password_ok(sampass, user_info, (char *)(server_info->session_key));
if NT_STATUS_IS_OK(nt_status) {
nt_status = sam_account_ok(sampass, user_info);
if (flags & (FILE_NOTIFY_CHANGE_DIR_NAME|FILE_NOTIFY_CHANGE_FILE_NAME|FILE_NOTIFY_CHANGE_FILE)) {
int i;
unsigned char tmp_hash[16];
- mdfour(tmp_hash, fname, strlen(fname));
+ mdfour(tmp_hash, (const unsigned char *)fname, strlen(fname));
for (i=0;i<16;i++)
data->name_hash[i] ^= tmp_hash[i];
}
lp_load(servicesf,True,False,False);
- argv_new = poptGetArgs(pc);
+ argv_new = (char **)poptGetArgs(pc);
for (i=0; i<argc; i++) {
if (argv_new[i] == NULL) {