Remove unused variables from Xprint/attributes.c
This commit is contained in:
parent
7a40ac2585
commit
839305bac9
|
@ -342,7 +342,7 @@ BuildPrinterAttrs(
|
|||
|
||||
if(systemAttributes.printers != (XrmDatabase)NULL)
|
||||
{
|
||||
char *dirName, *fileName;
|
||||
char *fileName;
|
||||
XrmDatabase modelDB = (XrmDatabase)NULL;
|
||||
XrmName xrm_name[5], xrm_class[2];
|
||||
XrmRepresentation rep_type;
|
||||
|
@ -642,7 +642,6 @@ XpGetOneAttribute(
|
|||
{
|
||||
ContextAttrPtr pCtxtAttrs;
|
||||
XrmDatabase db = (XrmDatabase)NULL;
|
||||
char *retVal;
|
||||
XrmName xrm_name[3];
|
||||
XrmRepresentation rep_type;
|
||||
XrmValue value;
|
||||
|
@ -895,7 +894,6 @@ XpGetAttributes(
|
|||
{
|
||||
ContextAttrPtr pCtxtAttrs;
|
||||
XrmDatabase db = (XrmDatabase)NULL;
|
||||
char *retVal;
|
||||
StringDbStruct enumStruct;
|
||||
XrmQuark empty = NULLQUARK;
|
||||
|
||||
|
@ -1536,8 +1534,8 @@ VectorizeCommand(
|
|||
char ***pVector,
|
||||
XpContextPtr pContext)
|
||||
{
|
||||
char *cmdName, *curTok;
|
||||
int i, numChars;
|
||||
char *cmdName;
|
||||
int numChars;
|
||||
|
||||
if(command == (char *)NULL)
|
||||
return (char *)NULL;
|
||||
|
@ -1563,7 +1561,7 @@ XpSubmitJob(fileName, pContext)
|
|||
char *fileName;
|
||||
XpContextPtr pContext;
|
||||
{
|
||||
char **vector, *cmdNam, *cmdOpt, *command, *userName;
|
||||
char **vector, *cmdNam, *command, *userName;
|
||||
int i;
|
||||
|
||||
command = XpGetOneAttribute(pContext, XPPrinterAttr, "xp-spooler-command");
|
||||
|
@ -1689,7 +1687,6 @@ XpGetTrayMediumFromContext(XpContextPtr pCon,
|
|||
{
|
||||
char *defMedium, *defTray;
|
||||
char *t, *m;
|
||||
char *pS, *pE, *pLast;
|
||||
|
||||
defMedium = XpGetOneAttribute( pCon, XPPageAttr,
|
||||
"default-medium" );
|
||||
|
|
Loading…
Reference in New Issue