~ubuntu-branches/ubuntu/trusty/syslog-ng/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/ivykis/lib/iv_tls.c

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2013-05-26 09:06:21 UTC
  • mfrom: (1.3.11)
  • Revision ID: package-import@ubuntu.com-20130526090621-8z2s0oi21eoljb9x
Tags: 3.3.9-1
* New upstream release.
* Include missed ivykis header (closes: #708793).

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "iv_private.h"
26
26
 
27
27
static int inited;
28
 
static off_t last_offset;
 
28
static off_t last_offset = (sizeof(struct iv_state) + 15) & ~15;
29
29
static struct iv_list_head iv_tls_users = IV_LIST_HEAD_INIT(iv_tls_users);
30
30
 
31
31
void iv_tls_user_register(struct iv_tls_user *itu)
33
33
        if (inited)
34
34
                iv_fatal("iv_tls_user_register: called after iv_init");
35
35
 
36
 
        if (last_offset == 0)
37
 
                last_offset = (sizeof(struct iv_state) + 15) & ~15;
38
 
 
39
36
        itu->state_offset = last_offset;
40
37
        last_offset = (last_offset + itu->sizeof_state + 15) & ~15;
41
38