more compiler warnings
authorHerb Lewis <herb@samba.org>
Tue, 23 Oct 2001 20:39:38 +0000 (20:39 +0000)
committerHerb Lewis <herb@samba.org>
Tue, 23 Oct 2001 20:39:38 +0000 (20:39 +0000)
(This used to be commit 12c10e876ea528fdf33e8ecfe42ab0ebb346b143)

source3/auth/auth_rhosts.c
source3/auth/auth_sam.c
source3/libsmb/cliconnect.c
source3/popt/popthelp.c
source3/smbd/auth_rhosts.c
source3/smbd/auth_smbpasswd.c
source3/smbd/notify_hash.c
source3/utils/net.c

index cd1bf57f8659097a1920b54899a78e6b860e4ba8..d6ca01936fbbe52593bb59a7d20a2434dcc48356 100644 (file)
@@ -86,7 +86,7 @@ static BOOL check_user_equiv(const char *user, const char *remote, const char *e
              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
index a525248461d0920cc1bd8f7ba09b0da4dacb6ddf..2070f09fd643121cee2ec25740b5fe84648dfe08 100644 (file)
@@ -311,7 +311,7 @@ NTSTATUS check_smbpasswd_security(const auth_usersupplied_info *user_info, auth_
                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);
index 2dad0247b2ae5ee2e0f04c1f7d1092bde08f286d..680f30900ea310d97d9504505620d2f53dc30094 100644 (file)
@@ -460,8 +460,8 @@ static BOOL cli_session_setup_ntlmssp(struct cli_state *cli, char *user,
 
        /* 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);
index c36eceadd90386a220798e5ce28151c4a7c7246f..6b790a63e78dec67073c8adfb4c1a6ec2af866ae 100644 (file)
@@ -26,7 +26,7 @@ struct poptOption poptHelpOptions[] = {
 } ;
 
 
-/*@observer@*/ /*@null@*/ static const char *const
+/*@observer@*/ /*@null@*/ static const char *
 getTableTranslationDomain(const struct poptOption *table)
 {
   const struct poptOption *opt;
@@ -41,7 +41,7 @@ getTableTranslationDomain(const struct poptOption *table)
   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;
index cd1bf57f8659097a1920b54899a78e6b860e4ba8..d6ca01936fbbe52593bb59a7d20a2434dcc48356 100644 (file)
@@ -86,7 +86,7 @@ static BOOL check_user_equiv(const char *user, const char *remote, const char *e
              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
index a525248461d0920cc1bd8f7ba09b0da4dacb6ddf..2070f09fd643121cee2ec25740b5fe84648dfe08 100644 (file)
@@ -311,7 +311,7 @@ NTSTATUS check_smbpasswd_security(const auth_usersupplied_info *user_info, auth_
                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);
index b4edc258e9e969b9b1a879fd68194cdfb90829ef..a8470102d520540abc06aedda2734b2746c7e8e1 100644 (file)
@@ -116,7 +116,7 @@ static BOOL notify_hash(connection_struct *conn, char *path, uint32 flags,
                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];
                }
index 349f1c4f603d043dc5c3c75373d7ece7c63d2259..611f79e7f313f1973ff19849eefbd5a00bd5bca4 100644 (file)
@@ -1279,7 +1279,7 @@ int main(int argc,char *argv[])
 
   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) {