Skip to content

Commit

Permalink
notifications manager: Fix compiler warnings.
Browse files Browse the repository at this point in the history
DEFINEs use 32bit by default.
  • Loading branch information
mtwebster committed May 13, 2024
1 parent 80974b7 commit f28727f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/print-notifications/csd-print-notifications-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#define CUPS_CONNECTION_TEST_INTERVAL 300
#define CHECK_INTERVAL 60 /* secs */

#define PRINTER_REMOVED_LIFETIME 7200 * 1000 * 1000 /* 1 hour (micro) */
#define PRINTER_REMOVED_LIFETIME 7200000000 // (7200 sec * 1000 * 1000 (microseconds) */
#define PRINTER_REMOVED_UPDATE_INTERVAL 1260 /* 21 min (sec) */

#if (CUPS_VERSION_MAJOR > 1) || (CUPS_VERSION_MINOR > 5)
Expand Down Expand Up @@ -351,7 +351,7 @@ drop_expired_removal (const gchar *printer_name,
RemovePrinterData *current_data = (RemovePrinterData *) user_data;

if (current_data->removed_time > foreach_data->removed_time + PRINTER_REMOVED_LIFETIME) {
g_debug ("Removing printer from removed-printers queue: %s (removed over %ds ago)",
g_debug ("Removing printer from removed-printers queue: %s (removed over %lds ago)",
printer_name, PRINTER_REMOVED_LIFETIME / 1000 / 1000);

return TRUE;
Expand Down

0 comments on commit f28727f

Please sign in to comment.