diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2007-12-07 19:47:43 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2007-12-07 19:47:43 +0000 |
commit | 0a6827453a0fe4a97ad37a6a1a7ffeb96a10e339 (patch) | |
tree | a8d99742dbf22a4efaaff8ce0df72082ef948943 /berkeley | |
parent | a41f09e265d6451d22585430ca176ff406d59f9b (diff) |
Import CUPS trunk (1.4svn) r7116.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@551 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'berkeley')
-rw-r--r-- | berkeley/lpc.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/berkeley/lpc.c b/berkeley/lpc.c index 666308ebb..947186782 100644 --- a/berkeley/lpc.c +++ b/berkeley/lpc.c @@ -230,7 +230,6 @@ show_status(http_t *http, /* I - HTTP connection to server */ ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ - cups_lang_t *language; /* Default language */ char *printer, /* Printer name */ *device, /* Device URI */ *delimiter; /* Char search result */ @@ -263,18 +262,7 @@ show_status(http_t *http, /* I - HTTP connection to server */ * attributes-natural-language */ - request = ippNew(); - - request->request.op.operation_id = CUPS_GET_PRINTERS; - request->request.op.request_id = 1; - - language = cupsLangDefault(); - - ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET, - "attributes-charset", NULL, cupsLangEncoding(language)); - - ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, - "attributes-natural-language", NULL, language->language); + request = ippNewRequest(CUPS_GET_PRINTERS); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(requested) / sizeof(requested[0]), |