summaryrefslogtreecommitdiff
path: root/systemv/lpstat.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-11-07 19:32:27 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-11-07 19:32:27 +0000
commit26d47ec6888969c3a3957f55c9eed0778813b94a (patch)
treeeec718b11e7f559cd0346c78363d68f728e9e106 /systemv/lpstat.c
parent2abf387cae0cce4bf3a0a259ded28ef0269aec47 (diff)
downloadcups-26d47ec6888969c3a3957f55c9eed0778813b94a.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@238 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv/lpstat.c')
-rw-r--r--systemv/lpstat.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/systemv/lpstat.c b/systemv/lpstat.c
index d1b02f7ee..46d74c56f 100644
--- a/systemv/lpstat.c
+++ b/systemv/lpstat.c
@@ -1,5 +1,5 @@
/*
- * "$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).
*
@@ -1695,7 +1695,7 @@ show_printers(http_t *http, /* I - HTTP connection to server */
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 */
@@ -2038,9 +2038,9 @@ show_printers(http_t *http, /* I - HTTP connection to server */
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");
}
}
@@ -2076,16 +2076,16 @@ show_printers(http_t *http, /* I - HTTP connection to server */
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
{
@@ -2151,9 +2151,9 @@ show_printers(http_t *http, /* I - HTTP connection to server */
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");
}
}
@@ -2189,16 +2189,16 @@ show_printers(http_t *http, /* I - HTTP connection to server */
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
{
@@ -2248,5 +2248,5 @@ show_scheduler(http_t *http) /* I - HTTP connection to server */
/*
- * 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 $".
*/