From: Michael R Sweet Date: Mon, 13 Apr 2026 15:52:41 +0000 (-0400) Subject: Fix compiler warning about 'misleading indentation' in the macOS USB backend code. X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=6d7fc511ac205e7027d14c405edee8db7a304d1b;p=thirdparty%2Fcups.git Fix compiler warning about 'misleading indentation' in the macOS USB backend code. --- diff --git a/backend/usb-darwin.c b/backend/usb-darwin.c index 5040c604e4..7abcf57d1e 100644 --- a/backend/usb-darwin.c +++ b/backend/usb-darwin.c @@ -1180,16 +1180,16 @@ static void device_added(void *userdata, io_iterator_t iterator) (*printerIntf)->GetInterfaceSubClass(printerIntf, &intfSubClass); if (intfClass == kUSBPrintingInterfaceClass && intfSubClass == kUSBPrintingSubclass) reference->keepRunning = reference->callback(intf, printerIntf, userdata); - (*printerIntf)->Release(printerIntf); - } - IOObjectRelease(intf); + (*printerIntf)->Release(printerIntf); } + IOObjectRelease(intf); + } - if (reference->keepRunning && reference->callback) - reference->keepRunning = reference->callback(IO_OBJECT_NULL, NULL, reference->userdata); + if (reference->keepRunning && reference->callback) + reference->keepRunning = reference->callback(IO_OBJECT_NULL, NULL, reference->userdata); - if (!reference->keepRunning) - CFRunLoopStop(CFRunLoopGetCurrent()); + if (!reference->keepRunning) + CFRunLoopStop(CFRunLoopGetCurrent()); } /* @@ -1305,14 +1305,14 @@ static Boolean find_device_cb(io_service_t obj, printer_interface_t printerIntf, if (g.printer_obj != 0) IOObjectRelease(g.printer_obj); - if (g.location == 0 || g.location == intfLocation) - keepLooking = false; + if (g.location == 0 || g.location == intfLocation) + keepLooking = false; - g.location = intfLocation; - g.alternateSetting = intfAltSetting; - g.interfaceProtocol = intfProtocol; - g.printer_obj = obj; - IOObjectRetain(obj); + g.location = intfLocation; + g.alternateSetting = intfAltSetting; + g.interfaceProtocol = intfProtocol; + g.printer_obj = obj; + IOObjectRetain(obj); } if (!keepLooking)