]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - pkgs/cpufrequtils/patches/cpufrequtils-008-aperf-32bit.patch
ae94b0acdd42db702d6d7cb08d34be2e1a7cbc31
[people/pmueller/ipfire-3.x.git] / pkgs / cpufrequtils / patches / cpufrequtils-008-aperf-32bit.patch
1 --- cpufrequtils-008/utils/aperf.c 2010-07-05 17:43:17.000000000 +0200
2 +++ cpufrequtils-008/utils/aperf.c.new 2011-02-07 16:34:17.421278000 +0100
3 @@ -96,7 +96,7 @@
4 return -1;
5 if (lseek(fd, idx, SEEK_CUR) == -1)
6 goto err;
7 - if (read(fd, val, sizeof val) != sizeof *val)
8 + if (read(fd, val, sizeof *val) != sizeof *val)
9 goto err;
10 close(fd);
11 return 0;