From: Michael R Sweet Date: Wed, 13 Sep 2023 14:02:26 +0000 (-0400) Subject: Fix Linux build issue. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=643dd14e2fccfddec25ce924bd01ee85b12a4bde;p=thirdparty%2Fcups.git Fix Linux build issue. --- diff --git a/notifier/dbus.c b/notifier/dbus.c index 03f171dd95..9408274dff 100644 --- a/notifier/dbus.c +++ b/notifier/dbus.c @@ -1,12 +1,14 @@ /* * D-Bus notifier for CUPS. * - * Copyright 2008-2014 by Apple Inc. - * Copyright (C) 2011, 2013 Red Hat, Inc. - * Copyright (C) 2007 Tim Waugh - * Copyright 1997-2005 by Easy Software Products. + * Copyright © 2023 by OpenPrinting. + * Copyright © 2008-2014 by Apple Inc. + * Copyright © 2011, 2013 Red Hat, Inc. + * Copyright © 2007 Tim Waugh + * Copyright © 1997-2005 by Easy Software Products. * - * Licensed under Apache License v2.0. See the file "LICENSE" for more information. + * Licensed under Apache License v2.0. See the file "LICENSE" for more + * information. */ /* @@ -229,18 +231,18 @@ main(int argc, /* I - Number of command-line args */ */ msg = ippNew(); - while ((state = ippReadFile(0, msg)) != IPP_DATA) + while ((state = ippReadFile(0, msg)) != IPP_STATE_DATA) { - if (state <= IPP_IDLE) + if (state <= IPP_STATE_IDLE) break; } fprintf(stderr, "DEBUG: state=%d\n", state); - if (state == IPP_ERROR) + if (state == IPP_STATE_ERROR) fputs("DEBUG: ippReadFile() returned IPP_ERROR!\n", stderr); - if (state <= IPP_IDLE) + if (state <= IPP_STATE_IDLE) { /* * Out of messages, free memory and then exit...