summaryrefslogtreecommitdiff
path: root/systemv/lpstat.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-09-10 22:30:50 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-09-10 22:30:50 +0000
commit49d8745278805ede5c41bae3c299e14ba40457bf (patch)
tree875bed78b8cff9d470bff3bf1feffcd8fdb4e869 /systemv/lpstat.c
parentc5571a1d68de6e20e127c9745aa7a4dbf4e4474d (diff)
downloadcups-49d8745278805ede5c41bae3c299e14ba40457bf.tar.gz
Merge changes from CUPS 1.4svn-r7932.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@957 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv/lpstat.c')
-rw-r--r--systemv/lpstat.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/systemv/lpstat.c b/systemv/lpstat.c
index ba63ae2c6..35b76226e 100644
--- a/systemv/lpstat.c
+++ b/systemv/lpstat.c
@@ -3,7 +3,7 @@
*
* "lpstat" command for the Common UNIX Printing System (CUPS).
*
- * Copyright 2007 by Apple Inc.
+ * Copyright 2007-2008 by Apple Inc.
* Copyright 1997-2006 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
@@ -112,6 +112,13 @@ main(int argc, /* I - Number of command-line arguments */
#endif /* HAVE_SSL */
break;
+ case 'H' : /* Show server and port */
+ if (cupsServer()[0] == '/')
+ _cupsLangPrintf(stdout, "%s\n", cupsServer());
+ else
+ _cupsLangPrintf(stdout, "%s:%d\n", cupsServer(), ippPort());
+ break;
+
case 'P' : /* Show paper types */
op = 'P';
break;