/*
- * "$Id: lpstat.c 5926 2006-09-05 20:45:47Z mike $"
+ * "$Id: lpstat.c 6073 2006-11-02 20:01:54Z mike $"
*
* "lpstat" command for the Common UNIX Printing System (CUPS).
*
cups_dest_t *dests, /* I - User-defined destinations */
int long_status) /* I - Show long status? */
{
- int i; /* Looping var */
+ int i, j; /* Looping vars */
ipp_t *request, /* IPP Request */
*response, /* IPP Response */
*jobs; /* IPP Get Jobs response */
if (reasons)
{
_cupsLangPuts(stdout, _("\tAlerts:"));
- for (i = 0; i < reasons->num_values; i ++)
+ for (j = 0; j < reasons->num_values; i ++)
_cupsLangPrintf(stdout, " %s",
- reasons->values[i].string.text);
+ reasons->values[j].string.text);
_cupsLangPuts(stdout, "\n");
}
}
if (allowed)
{
_cupsLangPuts(stdout, _("\tUsers allowed:\n"));
- for (i = 0; i < allowed->num_values; i ++)
+ for (j = 0; j < allowed->num_values; j ++)
_cupsLangPrintf(stdout, "\t\t%s\n",
- allowed->values[i].string.text);
+ allowed->values[j].string.text);
}
else if (denied)
{
_cupsLangPuts(stdout, _("\tUsers denied:\n"));
- for (i = 0; i < denied->num_values; i ++)
+ for (j = 0; j < denied->num_values; j ++)
_cupsLangPrintf(stdout, "\t\t%s\n",
- denied->values[i].string.text);
+ denied->values[j].string.text);
}
else
{
if (reasons)
{
_cupsLangPuts(stdout, _("\tAlerts:"));
- for (i = 0; i < reasons->num_values; i ++)
+ for (j = 0; j < reasons->num_values; j ++)
_cupsLangPrintf(stdout, " %s",
- reasons->values[i].string.text);
+ reasons->values[j].string.text);
_cupsLangPuts(stdout, "\n");
}
}
if (allowed)
{
_cupsLangPuts(stdout, _("\tUsers allowed:\n"));
- for (i = 0; i < allowed->num_values; i ++)
+ for (j = 0; j < allowed->num_values; j ++)
_cupsLangPrintf(stdout, "\t\t%s\n",
- allowed->values[i].string.text);
+ allowed->values[j].string.text);
}
else if (denied)
{
_cupsLangPuts(stdout, _("\tUsers denied:\n"));
- for (i = 0; i < denied->num_values; i ++)
+ for (j = 0; j < denied->num_values; j ++)
_cupsLangPrintf(stdout, "\t\t%s\n",
- denied->values[i].string.text);
+ denied->values[j].string.text);
}
else
{
/*
- * End of "$Id: lpstat.c 5926 2006-09-05 20:45:47Z mike $".
+ * End of "$Id: lpstat.c 6073 2006-11-02 20:01:54Z mike $".
*/