diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2015-01-19 15:17:18 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2015-01-19 15:17:18 +0000 |
commit | 6884f8da9655323f0fb3f22e8058ea5d723f74a0 (patch) | |
tree | 095f70e3151e636ab00fd398f39603bff45b571f /systemv/cupstestppd.c | |
parent | a112444032b69a48746f8424392c78fa414ec1a8 (diff) |
Fix compiler warnings.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12411 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv/cupstestppd.c')
-rw-r--r-- | systemv/cupstestppd.c | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/systemv/cupstestppd.c b/systemv/cupstestppd.c index 30d92b47d..7b4655eed 100644 --- a/systemv/cupstestppd.c +++ b/systemv/cupstestppd.c @@ -3,7 +3,7 @@ * * PPD test program for CUPS. * - * Copyright 2007-2013 by Apple Inc. + * Copyright 2007-2015 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * These coded instructions, statements, and computer programs are the @@ -15,26 +15,6 @@ * PostScript is a trademark of Adobe Systems, Inc. * * This file is subject to the Apple OS-Developed Software exception. - * - * Contents: - * - * main() - Main entry for test program. - * check_basics() - Check for CR LF, mixed line endings, and blank - * lines. - * check_constraints() - Check UIConstraints in the PPD file. - * check_case() - Check that there are no duplicate groups, options, - * or choices that differ only by case. - * check_defaults() - Check default option keywords in the PPD file. - * check_duplex() - Check duplex keywords in the PPD file. - * check_filters() - Check filters in the PPD file. - * check_profiles() - Check ICC color profiles in the PPD file. - * check_sizes() - Check media sizes in the PPD file. - * check_translations() - Check translations in the PPD file. - * show_conflicts() - Show option conflicts in a PPD file. - * test_raster() - Test PostScript commands for raster printers. - * usage() - Show program usage. - * valid_path() - Check whether a path has the correct capitalization. - * valid_utf8() - Check whether a string contains valid UTF-8 text. */ /* @@ -3218,8 +3198,8 @@ check_sizes(ppd_file_t *ppd, /* I - PPD file */ pwg_media = pwgMediaForSize(width_2540ths, length_2540ths); if (pwg_media && - (fabs(pwg_media->width - width_2540ths) > 34 || - fabs(pwg_media->length - length_2540ths) > 34)) + (abs(pwg_media->width - width_2540ths) > 34 || + abs(pwg_media->length - length_2540ths) > 34)) pwg_media = NULL; /* Only flag matches within a point */ if (pwg_media && pwg_media->ppd && |