summaryrefslogtreecommitdiff
path: root/backend/lpd.c
diff options
context:
space:
mode:
authorMichael Sweet <msweet@msweet-imac.local>2016-03-15 10:37:23 -0400
committerMichael Sweet <msweet@msweet-imac.local>2016-03-15 10:37:23 -0400
commit215ef638307fa5678879e0efa1782851bdee5a0a (patch)
treec1798b3898d4f939043e5f9cc397b8f43ea5f26d /backend/lpd.c
parenta51f28ec99827e6f3fb2ef796568fdb127a72568 (diff)
downloadcups-215ef638307fa5678879e0efa1782851bdee5a0a.tar.gz
Import CUPS v1.7.4release-1.7.4
Diffstat (limited to 'backend/lpd.c')
-rw-r--r--backend/lpd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/lpd.c b/backend/lpd.c
index 6e4ab3657..9490950a7 100644
--- a/backend/lpd.c
+++ b/backend/lpd.c
@@ -1,5 +1,5 @@
/*
- * "$Id: lpd.c 10996 2013-05-29 11:51:34Z msweet $"
+ * "$Id: lpd.c 12005 2014-07-08 15:46:59Z msweet $"
*
* Line Printer Daemon backend for CUPS.
*
@@ -393,8 +393,8 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
*/
snmp_enabled = !value[0] || !_cups_strcasecmp(value, "on") ||
- _cups_strcasecmp(value, "yes") ||
- _cups_strcasecmp(value, "true");
+ !_cups_strcasecmp(value, "yes") ||
+ !_cups_strcasecmp(value, "true");
}
else if (!_cups_strcasecmp(name, "timeout"))
{
@@ -1276,7 +1276,7 @@ rresvport_af(int *port, /* IO - Port number to bind to */
* Try binding the port to the socket; return if all is OK...
*/
- if (!bind(fd, (struct sockaddr *)&addr, sizeof(addr)))
+ if (!bind(fd, (struct sockaddr *)&addr, httpAddrSize(&addr)))
return (fd);
/*
@@ -1331,5 +1331,5 @@ sigterm_handler(int sig) /* I - Signal */
/*
- * End of "$Id: lpd.c 10996 2013-05-29 11:51:34Z msweet $".
+ * End of "$Id: lpd.c 12005 2014-07-08 15:46:59Z msweet $".
*/