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

@@ -17,16 +17,15 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
+ * Copyright 2017 Gary Mills
  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * This file contains an extremely rudimentary implementation of PPD file
  * parsing support.  The parsing done here converts the contents of a PPD
  * file into a set of PAPI attributes that applications can use to build
  * print panels.

@@ -88,11 +87,10 @@
         FILE *fp;
         char line[256];
         char capability[256];
         char def[256];
         char supported[256];
-        char *current_group_name = NULL;
 
         int ui = 0;
 
         if ((fp = fopen(filename, "r")) == NULL)
                 return (PAPI_NOT_POSSIBLE);

@@ -118,11 +116,10 @@
                         key = "media";
 
                 if (strcasecmp(key, "OpenGroup") == 0) {
                         if (value == NULL)
                                 value = "unknown";
-                        current_group_name = strdup(value);
                 } else if (strcasecmp(key, "OpenUI") == 0) {
                         if ((strcasecmp(value, "PageSize") == 0) ||
                             (strcasecmp(value, "InputSlot") == 0))
                                 value = "media";
                         snprintf(capability, sizeof (capability), "%s", value);