]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix Linux build issue.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 13 Sep 2023 14:02:26 +0000 (10:02 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 13 Sep 2023 14:02:26 +0000 (10:02 -0400)
notifier/dbus.c

index 03f171dd95f67edad21faa3a675846f2a008f481..9408274dff1a22c764d1cc29ab18eb593d5deb2a 100644 (file)
@@ -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 <twaugh@redhat.com>
- * 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 <twaugh@redhat.com>
+ * 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...