thorsson_cups 0.0.20 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/cups.c +2 -6
- metadata +2 -2
data/ext/cups.c
CHANGED
|
@@ -53,17 +53,13 @@ int printer_exists(VALUE printer){
|
|
|
53
53
|
*/
|
|
54
54
|
static VALUE job_init(int argc, VALUE* argv, VALUE self)
|
|
55
55
|
{
|
|
56
|
-
VALUE filename, printer, job_options
|
|
56
|
+
VALUE filename, printer, job_options;
|
|
57
57
|
|
|
58
|
-
rb_scan_args(argc, argv, "12", &filename, &printer, &job_options
|
|
58
|
+
rb_scan_args(argc, argv, "12", &filename, &printer, &job_options);
|
|
59
59
|
|
|
60
60
|
rb_iv_set(self, "@filename", filename);
|
|
61
61
|
rb_iv_set(self, "@url_path", rb_str_new2(cupsServer()));
|
|
62
62
|
|
|
63
|
-
if(!NIL_P(job_id)) {
|
|
64
|
-
rv_iv_set(self, "@job_id", NUM2INT(job_id));
|
|
65
|
-
}
|
|
66
|
-
|
|
67
63
|
if (NIL_P(job_options)) {
|
|
68
64
|
rb_iv_set(self, "@job_options", rb_hash_new());
|
|
69
65
|
} else {
|