thorsson_cups 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/cups.c +6 -3
  2. metadata +2 -2
data/ext/cups.c CHANGED
@@ -448,11 +448,14 @@ static VALUE cups_cancel_print(int argc, VALUE* argv, VALUE self)
448
448
  }
449
449
 
450
450
  http_t *http;
451
- ipp_t *request, *response;
451
+ ipp_t *request;
452
+ ipp_t *response;
452
453
  ipp_attribute_t *attr;
453
454
  char uri[1024];
454
455
  char *location;
455
- char *printer = RSTRING_PTR(printerName);
456
+ char *printer;
457
+
458
+ printer = RSTRING_PTR(printerName);
456
459
 
457
460
  request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);
458
461
  httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", printer);
@@ -460,7 +463,7 @@ static VALUE cups_cancel_print(int argc, VALUE* argv, VALUE self)
460
463
 
461
464
  if ((response = cupsDoRequest(http, request, "/")) != NULL) {
462
465
  if((attr = ippFindAttribute(response, "device-uri", IPP_TAG_URI)) != NULL) {
463
- int c = 0;
466
+ //int c = 0;
464
467
  // sprintf(location, "%s", attr->values[0].string.text);
465
468
  }
466
469
  ippDelete(response);
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 26
9
- version: 0.0.26
8
+ - 27
9
+ version: 0.0.27
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ivan Turkovic