From fe48eac5838c85e434fb0ec8e798b4a5b5a69802 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Fri, 7 Sep 2012 16:55:16 +0200 Subject: Don't access CUPS' ipp_attribute_t directly CUPS doesn't support that anymore. --- src/indicator-printers-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indicator-printers-service.c b/src/indicator-printers-service.c index ad5ef88..fb85069 100644 --- a/src/indicator-printers-service.c +++ b/src/indicator-printers-service.c @@ -56,7 +56,7 @@ create_subscription () attr = ippFindAttribute (resp, "notify-subscription-id", IPP_TAG_INTEGER); if (attr) - id = attr->values[0].integer; + id = ippGetInteger (attr, 0); else g_warning ("ipp-create-printer-subscription response doesn't contain " "subscription id.\n"); -- cgit v1.2.3