~ubuntu-branches/ubuntu/oneiric/collectd/oneiric

« back to all changes in this revision

Viewing changes to src/utils_llist.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Harl
  • Date: 2008-06-17 10:35:51 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080617103551-9d0ym3zejc7agtt3
Tags: 4.4.1-1
* New upstream release.
  - Fixed another issue of the sensors plugin affecting some chip types
    (Closes: #468143).
  - Fixed creation of "vserver" graphs in collection.cgi (Closes: #475120).
  - Fixed a segfault when using libperl 5.10.
  - collectd now ships libiptc itself.
  New plugins:
  - Ascent server statistics: ascent
  - IPMI sensors information: ipmi
  - PowerDNS name server statistics: powerdns
  - incremental parsing of logfiles: tail
  - TeamSpeak2 server statistics: teamspeak2
  - detailed virtual memory statistics: vmem
* Disable "tcpconns" plugin by default (Closes: #478759).
* Reenabled iptables plugin on all architectures (Closes: #473435).
  - Added the plugin to collectd.conf.
  - Added /usr/share/doc/collectd/examples/iptables/.
  - Added build dependency on linux-libc-dev (>= 2.6.25-4) - that version is
    required because of #479899.
* New debconf template translations:
  - gl.po, thanks to Jacobo Tarrio (Closes: #482667).
* Added a work around for #474087 (broken openipmi .pc files) by forcing the
  inclusion of the ipmi plugin and manually specifying the dependencies.
* Updated standards-version to 3.8.0 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        llentry_t *e_this;
60
60
        llentry_t *e_next;
61
61
 
 
62
        if (l == NULL)
 
63
                return;
 
64
 
62
65
        for (e_this = l->head; e_this != NULL; e_this = e_next)
63
66
        {
64
67
                e_next = e_this->next;
140
143
{
141
144
        llentry_t *e;
142
145
 
 
146
        if (l == NULL)
 
147
                return (NULL);
 
148
 
143
149
        for (e = l->head; e != NULL; e = e->next)
144
150
                if (strcmp (key, e->key) == 0)
145
151
                        break;
149
155
 
150
156
llentry_t *llist_head (llist_t *l)
151
157
{
 
158
        if (l == NULL)
 
159
                return (NULL);
152
160
        return (l->head);
153
161
}
154
162
 
155
163
llentry_t *llist_tail (llist_t *l)
156
164
{
 
165
        if (l == NULL)
 
166
                return (NULL);
157
167
        return (l->tail);
158
168
}