~ubuntu-branches/ubuntu/intrepid/squid/intrepid

« back to all changes in this revision

Viewing changes to src/tools.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-01-11 21:47:16 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20080111214716-rf21i8x0l22x9vqt
Tags: 2.6.18-1ubuntu1
* Merge from Debian unstable (LP:# 182624), Ubuntu remaining changes:
  - 99-ubuntu-ssl-cert-snakeoil:
    + src/cf.data.pre:
      * Add reference to snakeoil certificates in /etc/ssl
  - debian/control:
    + Add ssl-cert to Depends: to bring in snakeoil certificates.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
 
 * $Id: tools.c,v 1.250.2.3 2007/09/01 20:09:50 hno Exp $
 
3
 * $Id: tools.c,v 1.250.2.4 2008/01/02 17:06:50 hno Exp $
4
4
 *
5
5
 * DEBUG: section 21    Misc Functions
6
6
 * AUTHOR: Harvest Derived
976
976
         * 2 until it becomes positive again.
977
977
         */
978
978
        kb_t x;
979
 
        x.kb = 1 << 31;
 
979
        x.kb = 1L << 31;
980
980
        while (x.kb && ((k->kb + x.kb) < 0)) {
981
981
            x.kb <<= 1;
982
982
        }
1295
1295
void
1296
1296
setUmask(mode_t mask)
1297
1297
{
1298
 
    static mode_t orig_umask = ~0;
 
1298
    static mode_t orig_umask = (mode_t) ~ 0;
1299
1299
    if (orig_umask == (mode_t) ~ 0) {
1300
1300
        /* Unfortunately, there is no way to get the current
1301
1301
         * umask value without setting it.