summaryrefslogtreecommitdiffstats
path: root/dmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmi.c')
-rw-r--r--dmi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dmi.c b/dmi.c
index 7c0fc4c79..beeb10f35 100644
--- a/dmi.c
+++ b/dmi.c
@@ -27,6 +27,7 @@
#include <strings.h>
#include <string.h>
#include <ctype.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -432,7 +433,7 @@ void dmi_init(void)
*/
static int dmi_compare(const char *value, const char *pattern)
{
- int anchored = 0;
+ bool anchored = false;
int patternlen;
msg_pspew("matching %s against %s\n", value, pattern);
@@ -441,7 +442,7 @@ static int dmi_compare(const char *value, const char *pattern)
return 1;
if (pattern[0] == '^') {
- anchored = 1;
+ anchored = true;
pattern++;
}
@@ -458,7 +459,7 @@ static int dmi_compare(const char *value, const char *pattern)
/* start character to make ends match */
value += valuelen - patternlen;
- anchored = 1;
+ anchored = true;
}
if (anchored)