~ubuntu-branches/ubuntu/hardy/lighttpd/hardy

« back to all changes in this revision

Viewing changes to src/buffer.c

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-09-05 09:30:15 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070905093015-pm98jekbu9ylcd3w
Tags: 1.4.17-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Update maintainer field in debian/control.
  - Build against libgamin-dev rather than libfam-dev (fixes a warning
    during startup)
  - Make sure that upgrades succeed, even if we can't restart lighttpd.
  - Clean environment in init.d script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
        return 0;
282
282
}
283
283
 
284
 
int ltostr(char *buf, long val) {
 
284
int LI_ltostr(char *buf, long val) {
285
285
        char swap;
286
286
        char *end;
287
287
        int len = 1;
320
320
        if (b->used == 0)
321
321
                b->used++;
322
322
 
323
 
        b->used += ltostr(b->ptr + (b->used - 1), val);
 
323
        b->used += LI_ltostr(b->ptr + (b->used - 1), val);
324
324
        return 0;
325
325
}
326
326
 
503
503
}
504
504
 
505
505
int buffer_is_empty(buffer *b) {
 
506
        if (!b) return 1;
506
507
        return (b->used == 0);
507
508
}
508
509
 
574
575
                }
575
576
        }
576
577
 
577
 
        return 0;
 
578
        /* all chars are the same, and the length match too
 
579
         *
 
580
         * they are the same */
 
581
        if (a_len == b_len) return 0;
 
582
 
 
583
        /* if a is shorter then b, then b is larger */
 
584
        return (a_len - b_len);
578
585
}
579
586
 
580
587