~ubuntu-branches/ubuntu/oneiric/acpid/oneiric-security

« back to all changes in this revision

Viewing changes to kacpimon/libnetlink.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Meskes
  • Date: 2011-03-11 12:16:31 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20110311121631-zqn0sf17l0wptgpt
Tags: 1:2.0.8-3
* Allow build flags to be customized by setting DEB_BUILD_OPTIONS in the
  build-time environment. Thanks to Jonathan Nieder <jrnieder@gmail.com>
* Remove variable that is not used in kacpimon.
  Thanks to Jonathan Nieder <jrnieder@gmail.com> (Closes: #616306)

Show diffs side-by-side

added added

removed removed

Lines of Context:
441
441
        nladdr.nl_groups = 0;
442
442
 
443
443
        while (1) {
444
 
                int err, len, type;
 
444
                int err, len;
445
445
                int l;
446
446
 
447
447
                status = fread(&buf, 1, sizeof(*h), rtnl);
456
456
                        return 0;
457
457
 
458
458
                len = h->nlmsg_len;
459
 
                type= h->nlmsg_type;
460
459
                l = len - sizeof(*h);
461
460
 
462
461
                if (l<0 || (unsigned)len>sizeof(buf)) {