From 643dd14e2fccfddec25ce924bd01ee85b12a4bde Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 13 Sep 2023 10:02:26 -0400 Subject: [PATCH] Fix Linux build issue. --- notifier/dbus.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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... -- 2.47.3