~ubuntu-branches/debian/jessie/systemd/jessie

« back to all changes in this revision

Viewing changes to src/hashmap.c

  • Committer: Package Import Robot
  • Author(s): Tollef Fog Heen, Tollef Fog Heen, Michael Biebl
  • Date: 2012-04-03 19:59:17 UTC
  • mfrom: (1.1.10) (6.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20120403195917-l532urrbg4pkreas
Tags: 44-1
[ Tollef Fog Heen ]
* New upstream version.
  - Backport 3492207: journal: PAGE_SIZE is not known on ppc and other
    archs
  - Backport 5a2a2a1: journal: react with immediate rotation to a couple
    of more errors
  - Backport 693ce21: util: never follow symlinks in rm_rf_children()
    Fixes CVE-2012-1174, closes: #664364
* Drop output message from init-functions hook, it's pointless.
* Only rmdir /lib/init/rw if it exists.
* Explicitly order debian-fixup before sysinit.target to prevent a
  possible race condition with the creation of sockets.  Thanks to
  Michael Biebl for debugging this.
* Always restart the initctl socket on upgrades, to mask sysvinit
  removing it.

[ Michael Biebl ]
* Remove workaround for non-interactive sessions from pam config again.
* Create compat /dev/initctl symlink in case we are upgrading from a system
  running a newer version of sysvinit (using /run/initctl) and sysvinit is
  replaced with systemd-sysv during the upgrade. Closes: #663219
* Install new man pages.
* Build-Depend on valac (>= 0.12) instead of valac-0.12. Closes: #663323

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        unsigned n_used;
56
56
};
57
57
 
58
 
struct pool *first_hashmap_pool = NULL;
 
58
static struct pool *first_hashmap_pool = NULL;
59
59
static void *first_hashmap_tile = NULL;
60
60
 
61
 
struct pool *first_entry_pool = NULL;
 
61
static struct pool *first_entry_pool = NULL;
62
62
static void *first_entry_tile = NULL;
63
63
 
64
64
static void* allocate_tile(struct pool **first_pool, void **first_tile, size_t tile_size) {
558
558
        return h->iterate_list_head->value;
559
559
}
560
560
 
 
561
void* hashmap_first_key(Hashmap *h) {
 
562
 
 
563
        if (!h)
 
564
                return NULL;
 
565
 
 
566
        if (!h->iterate_list_head)
 
567
                return NULL;
 
568
 
 
569
        return (void*) h->iterate_list_head->key;
 
570
}
 
571
 
561
572
void* hashmap_last(Hashmap *h) {
562
573
 
563
574
        if (!h)