~ubuntu-branches/ubuntu/precise/hardinfo/precise

« back to all changes in this revision

Viewing changes to arch/linux/common/battery.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-11-06 14:14:17 UTC
  • mfrom: (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091106141417-fnpdc0ya7ac8bmsx
Tags: 0.5.1-1ubuntu1
* Merge from debian testing:
  - debian/rules: Don't install anything in /usr/local, otherwise FTBFS.
* debian/control: Add homepage field.
* Add quilt patch system support.
* Add 01-truncated_description.patch to fix LP: #357189 (at least
  partially).

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
    if ((procapm = fopen("/proc/apm", "r"))) {
218
218
        int old_percentage = percentage;
219
219
        
220
 
        fscanf(procapm, "%s %s %s 0x%x %s %s %d%%",
 
220
        (void)fscanf(procapm, "%s %s %s 0x%x %s %s %d%%",
221
221
               apm_drv_ver, apm_bios_ver, trash,
222
222
               &ac_bat, trash, trash, &percentage);
223
223
        fclose(procapm);