diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2018-10-17 11:31:45 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2018-10-17 11:31:45 -0400 |
commit | 5a855d856a17c7986e5396c38f8e75616775983a (patch) | |
tree | 6157dd12679bc856336c0477776876d189302658 /scheduler/cups-deviced.c | |
parent | 104c5283581719f72d18cd5038aaeb21387695d4 (diff) | |
download | cups-5a855d856a17c7986e5396c38f8e75616775983a.tar.gz |
Remove dependency on zlib headers outside of libcups.
Diffstat (limited to 'scheduler/cups-deviced.c')
-rw-r--r-- | scheduler/cups-deviced.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scheduler/cups-deviced.c b/scheduler/cups-deviced.c index 85ecda167..77703b983 100644 --- a/scheduler/cups-deviced.c +++ b/scheduler/cups-deviced.c @@ -1,10 +1,11 @@ /* * Device scanning mini-daemon for CUPS. * - * Copyright 2007-2014 by Apple Inc. - * Copyright 1997-2006 by Easy Software Products. + * Copyright © 2007-2018 by Apple Inc. + * Copyright © 1997-2006 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. */ /* @@ -308,7 +309,7 @@ main(int argc, /* I - Number of command-line args */ break; } } - while (bpipe->ptr && memchr(bpipe->ptr, '\n', (size_t)(bpipe->end - bpipe->ptr))); + while (_cupsFilePeekAhead(bpipe, '\n')); } } |