| 1 |
Author: Andreas Beckmann <[email protected]> |
| 2 |
Description: use a consistent bool type |
| 3 |
Bug-Debian: #749724 |
| 4 |
|
| 5 |
--- a/i7z.h |
| 6 |
+++ b/i7z.h |
| 7 |
@@ -11,18 +11,13 @@ |
| 8 |
* ----------------------------------------------------------------------- */ |
| 9 |
|
| 10 |
#include <sys/time.h> |
| 11 |
+#include <stdbool.h> |
| 12 |
|
| 13 |
#define i7z_VERSION_INFO "svn-r93-(27-MAY-2013)" |
| 14 |
|
| 15 |
//structure to store the information about the processor |
| 16 |
#define proccpuinfo "/proc/cpuinfo" |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#define MAX_PROCESSORS 128 |
| 25 |
#define MAX_HI_PROCESSORS MAX_PROCESSORS |
| 26 |
#define MAX_SK_PROCESSORS (MAX_PROCESSORS/4) |
| 27 |
--- a/cpuinfo.c |
| 28 |
+++ b/cpuinfo.c |
| 29 |
@@ -2,10 +2,8 @@ |
| 30 |
#include "string.h" |
| 31 |
#include "stdlib.h" |
| 32 |
#include "assert.h" |
| 33 |
+#include <stdbool.h> |
| 34 |
#define MAX_PROCESSORS 32 |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
#define MAX_HI_PROCESSORS MAX_PROCESSORS |
| 40 |
|