Print this page
8485 Remove set but unused variables in usr/src/cmd
*** 17,32 ****
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* 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.
--- 17,31 ----
* 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.
*/
/*
* 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,98 ****
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);
--- 87,96 ----
*** 118,128 ****
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);
--- 116,125 ----