~ubuntu-branches/ubuntu/karmic/asterisk/karmic-proposed

« back to all changes in this revision

Viewing changes to main/db1-ast/hash/hash_page.c

  • Committer: Bazaar Package Importer
  • Author(s): Faidon Liambotis, Faidon Liambotis, Tzafrir Cohen
  • Date: 2009-07-28 03:42:54 UTC
  • mfrom: (8.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090728034254-ip2jeh7h3s45fqre
Tags: 1:1.6.2.0~dfsg~beta3-1
[ Faidon Liambotis ]
* New upstream release.
  - Drop patches astvarrundir, pubkey_jnctn; merged upstream (finally!).
  - Adapt patch safe_asterisk-nobg.
* Switch to downloads.asterisk.org instead of downloads.digium.com.
* Add depends on libxml2-dev for the new XML documentation.
* Remove Conflicts/Replaces with asterisk-classic, asterisk-bristuff,
  asterisk-chan-capi (<< 1.1.1-1~), since those are pre-lenny.
* Revert upstream's r190830 that ported app_osplookup to OSP Toolkit 3.5;
  the API is not backwards compatible and Debian still has 3.4.2.
* Accommodate for the rename of libcap2-dev to libcap-dev (Closes: #532971).
* Add dependency to libspandsp to build the fax applications.
* Update Standards-Version to 3.8.2, no changes needed.
* Remove init script's "zaptel-fix" action; there's no zaptel anymore and
  was also lintian-buggy in its current form.
* Don't include /var/run/asterisk in the package, it is created at boot-time
  by the init script (thanks lintian).
* Remove asterisk-progdocs: it is of very limited use but a) is enormous in
  size and b) takes too long to build.
* Re-enable and port to 1.6 the h323 segfault patch, apparently it's still
  needed.
* Fix asterisk's Makefiles so that the openh323/libpt dependencies are added
  to chan_h323.so instead of the main asterisk binary.
* Fix astgenkey to respect system's umask. Thanks Jonas Smedegaard.
  (Closes: #531730) 
* Create /var/log/asterisk/* directories if non-existent, for /var/log on
  tmpfs scenarios. Thanks martin f krafft! (Closes: #524015)
* Use the lsb-base standard way of gathering and reporting status in the
  init script. Thanks Dustin Kirkland and Ubuntu! (Closes: #506453)
* Fix debian/rules so that configure isn't called twice during a build.
* Install Zaptel-to-DAHDI.txt, explains the migration procedure from Zaptel
  to DAHDI and is therefore useful when upgrading from lenny.

[ Tzafrir Cohen ]
* New upstream release.
  - Fixes that bashism in safe_asterisk (Closes: #530047) (not dashism).
  - Dropped patch astcanary_startup: merged upstream.
* Patch makefile_appdocs_dtd: fix location of DTD installation.
* Register the HTML docs with doc-base as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
712
712
#define OVMSG   "HASH: Out of overflow pages.  Increase page size\n"
713
713
        if (offset > SPLITMASK) {
714
714
                if (++splitnum >= NCACHED) {
715
 
                        (void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
 
715
                        if (write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1) < 0) {
 
716
                        }
716
717
                        return (0);
717
718
                }
718
719
                hashp->OVFL_POINT = splitnum;
725
726
        if (free_bit == (hashp->BSIZE << BYTE_SHIFT) - 1) {
726
727
                free_page++;
727
728
                if (free_page >= NCACHED) {
728
 
                        (void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
 
729
                        if (write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1) < 0) {
 
730
                        }
729
731
                        return (0);
730
732
                }
731
733
                /*
749
751
                offset++;
750
752
                if (offset > SPLITMASK) {
751
753
                        if (++splitnum >= NCACHED) {
752
 
                                (void)write(STDERR_FILENO, OVMSG,
753
 
                                    sizeof(OVMSG) - 1);
 
754
                                if (write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1) < 0) {
 
755
                                }
754
756
                                return (0);
755
757
                        }
756
758
                        hashp->OVFL_POINT = splitnum;