summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-11-18 11:03:28 -0500
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-11-18 11:03:28 -0500
commitb31d4ca52509faed1301b613d7d71ae18c7caeb9 (patch)
tree017252759f2d66b679acf2e989380b909b025712 /cups
parent6d391f77051cc485f09600a00ff3d129f9736a35 (diff)
downloadcups-b31d4ca52509faed1301b613d7d71ae18c7caeb9.tar.gz
More LGTM changes.
Diffstat (limited to 'cups')
-rw-r--r--cups/adminutil.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/cups/adminutil.c b/cups/adminutil.c
index f82f454a6..3118968c6 100644
--- a/cups/adminutil.c
+++ b/cups/adminutil.c
@@ -1,7 +1,7 @@
/*
* Administration utility API definitions for CUPS.
*
- * Copyright © 2007-2018 by Apple Inc.
+ * Copyright © 2007-2019 by Apple Inc.
* Copyright © 2001-2007 by Easy Software Products.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
@@ -738,13 +738,9 @@ cupsAdminSetServerSettings(
{
if (!wrote_browsing)
{
- int new_share_printers = (share_printers > 0 ||
- (share_printers == -1 &&
- old_share_printers > 0));
-
wrote_browsing = 1;
- if (new_share_printers)
+ if (share_printers)
{
const char *localp = cupsGetOption("BrowseLocalProtocols",
num_settings, settings);