~ubuntu-branches/ubuntu/lucid/xenomai/lucid

« back to all changes in this revision

Viewing changes to include/nucleus/stat.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-06-24 22:17:01 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090624221701-mwnah8aj90zmp6uj
Tags: 2.4.8-2ubuntu1
* Merge from debian unstable (LP: #391918), remaining changes:
  - Add lpia to supported architectures.
  - debian/rules: Create file for debhelper to pick up, use debhelper to
    install it.
  - debian/libxenomai1.dirs: Do not create directory.
  - debian/libxenomai1.preinst: Remove symlink on upgrade, remove old udev.
    rule unless modified in which case move to new name.
  - debian/libxenomai1.postinst: Do not create symlink.
  - debian/libxenomai1.postrm: No symlink to remove.
  - Bump build-depend on debhelper to install udev rules into
    /lib/udev/rules.d, add Breaks on udev to get correct version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
 
86
86
typedef struct xnstat_counter {
87
 
        int counter;
 
87
        unsigned long counter;
88
88
} xnstat_counter_t;
89
89
 
90
 
static inline int xnstat_counter_inc(xnstat_counter_t *c)
 
90
static inline unsigned long xnstat_counter_inc(xnstat_counter_t *c)
91
91
{
92
92
        return c->counter++;
93
93
}
94
94
 
95
 
static inline int xnstat_counter_get(xnstat_counter_t *c)
 
95
static inline unsigned long xnstat_counter_get(xnstat_counter_t *c)
96
96
{
97
97
        return c->counter;
98
98
}
99
99
 
100
 
static inline void xnstat_counter_set(xnstat_counter_t *c, int value)
 
100
static inline void xnstat_counter_set(xnstat_counter_t *c, unsigned long value)
101
101
{
102
102
        c->counter = value;
103
103
}