More unused variables.
authorJeremy Allison <jra@samba.org>
Fri, 23 Mar 2001 20:41:22 +0000 (20:41 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 23 Mar 2001 20:41:22 +0000 (20:41 +0000)
Jeremy.

source/rpcclient/cmd_lsarpc.c
source/rpcclient/rpcclient.c
source/smbd/posix_acls.c

index 77b61c8a2fc8f30fafefd643a0de4f80c99ad26f..a574f2e128ac7b4eaa40cd75c90e053dbb01931c 100644 (file)
@@ -235,7 +235,9 @@ static uint32 cmd_lsa_enum_trust_dom(struct cli_state *cli, int argc, char **arg
        BOOL got_policy_hnd = False;
        DOM_SID *domain_sids;
        char **domain_names;
-       int num_domains, enum_ctx = 0, i;
+       uint32 enum_ctx = 0;
+       uint32 num_domains;
+       int i;
 
        if (argc != 1) {
                printf("Usage: %s\n", argv[0]);
index 9934808c7730c4e4a99802b25cb17c15c5533f55..8cc740f0720cd52dc3ee1b003e068a4e021bbc43 100644 (file)
@@ -436,11 +436,9 @@ static void usage(char *pname)
 {
        extern char             *optarg;
        extern int              optind;
-       struct in_addr          dest_ip;
        extern pstring          global_myname;
        BOOL                    got_pass = False;
        BOOL                    interactive = True;
-       BOOL                    have_ip = False;
        int                     opt;
        int                     olddebug;
        pstring                 cmdstr = "", 
@@ -468,7 +466,7 @@ static void usage(char *pname)
        argv++;
        argc--;
 
-       while ((opt = getopt(argc, argv, "A:s:Nd:I:U:W:c:l:")) != EOF) {
+       while ((opt = getopt(argc, argv, "A:s:Nd:U:W:c:l:")) != EOF) {
                switch (opt) {
                case 'A':
                        /* only get the username, password, and domain from the file */
@@ -485,11 +483,6 @@ static void usage(char *pname)
                        DEBUGLEVEL = atoi(optarg);
                        break;
 
-               case 'I':
-                       dest_ip = *interpret_addr2(optarg);
-                       have_ip = True;
-                       break;
-                       
                case 'l':
                        slprintf(debugf, sizeof(debugf) - 1, "%s.client", optarg);
                        interactive = False;
@@ -592,10 +585,9 @@ static void usage(char *pname)
        if (cmdstr[0]) {
                char    *cmd;
                char    *p = cmdstr;
-               uint32  result;
 
                while((cmd=next_command(&p)) != NULL) {
-                       result = process_cmd(&cli, cmd);
+                       process_cmd(&cli, cmd);
                }
 
                return 0;
@@ -606,7 +598,6 @@ static void usage(char *pname)
        while(1) {
                pstring prompt, cmd;
                char *line;
-               uint32 result;
 
                ZERO_STRUCT(cmd);
                
@@ -614,9 +605,8 @@ static void usage(char *pname)
 
                line = smb_readline(prompt, NULL, NULL);
 
-               result = process_cmd(&cli, line);
+               process_cmd(&cli, line);
        }
        
        return 0;
 }
-
index fe1c02e46c1bac5300480c228a98b171a777406c..54973d17a751408968397ab24fef13c20668cb4e 100644 (file)
@@ -1428,9 +1428,6 @@ static canon_ace *canonicalise_acl( files_struct *fsp, SMB_ACL_T posix_acl, SMB_
        canon_ace *list_head = NULL;
        canon_ace *ace = NULL;
        canon_ace *next_ace = NULL;
-       canon_ace *owner_ace = NULL;
-       canon_ace *group_ace = NULL;
-       canon_ace *other_ace = NULL;
        int entry_id = SMB_ACL_FIRST_ENTRY;
        SMB_ACL_ENTRY_T entry;
        size_t ace_count;
@@ -1523,17 +1520,6 @@ static canon_ace *canonicalise_acl( files_struct *fsp, SMB_ACL_T posix_acl, SMB_
                ace->unix_ug = unix_ug;
                ace->owner_type = owner_type;
 
-               /*
-                * Remember the user/group/other ACE entries.
-                */
-
-               if (tagtype == SMB_ACL_USER_OBJ)
-                       owner_ace = ace;
-               else if (tagtype == SMB_ACL_GROUP_OBJ)
-                       group_ace = ace;
-               else if (tagtype == SMB_ACL_OTHER)
-                       other_ace = ace;
-
                DLIST_ADD(list_head, ace);
        }