Print this page
8485 Remove set but unused variables in usr/src/cmd

@@ -1,7 +1,5 @@
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * kadmin/ldap_util/kdb5_ldap_list.c
  */
 
 /* Copyright (c) 2004-2005, Novell, Inc.

@@ -162,11 +160,10 @@
     int mode;
 {
     char **dlist = NULL, **tmplist = NULL;
     const char **slist = NULL;
     int dcount = 0, scount = 0, copycount = 0;
-    int found = 0;
 
     if ((destlist == NULL) || (*destlist == NULL) || (sourcelist == NULL))
         return;
 
     /* We need to add every entry present in the source list to

@@ -198,14 +195,12 @@
     } else if (mode == LIST_MODE_DELETE) {
         /* We need to delete every entry present in the source list
          * from the destination list */
         for (slist = sourcelist; *slist != NULL; slist++) {
             for (dlist = *destlist; *dlist != NULL; dlist++) {
-                found = 0; /* value not found */
                 /* DN is case insensitive string */
                 if (strcasecmp(*dlist, *slist) == 0) {
-                    found = 1;
                     free(*dlist);
                     /* Advance the rest of the entries by one */
                     for (tmplist = dlist; *tmplist != NULL; tmplist++) {
                         *tmplist = *(tmplist+1);
                     }