diff options
author | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-05-05 19:18:41 +0000 |
---|---|---|
committer | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-05-05 19:18:41 +0000 |
commit | a74454a757c35671e1cbf71870231a3d51945858 (patch) | |
tree | 429d638328a55c8f291b818c053bba31c2e9efa8 /cups/array.c | |
parent | 89d46774ee527faaaf27d1b696554f4508bf105b (diff) | |
download | cups-a74454a757c35671e1cbf71870231a3d51945858.tar.gz |
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@145 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/array.c')
-rw-r--r-- | cups/array.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cups/array.c b/cups/array.c index f301b5c24..b05168031 100644 --- a/cups/array.c +++ b/cups/array.c @@ -1,5 +1,5 @@ /* - * "$Id: array.c 5258 2006-03-09 15:40:56Z mike $" + * "$Id: array.c 5493 2006-05-05 16:33:57Z mike $" * * Sorted array routines for the Common UNIX Printing System (CUPS). * @@ -939,11 +939,14 @@ cups_array_find(cups_array_t *a, /* I - Array */ DEBUG_puts("cups_array_find: linear search"); - diff = 0; + diff = 1; for (current = 0; current < a->num_elements; current ++) if (a->elements[current] == e) + { + diff = 0; break; + } } /* @@ -959,5 +962,5 @@ cups_array_find(cups_array_t *a, /* I - Array */ /* - * End of "$Id: array.c 5258 2006-03-09 15:40:56Z mike $". + * End of "$Id: array.c 5493 2006-05-05 16:33:57Z mike $". */ |