summaryrefslogtreecommitdiff
path: root/ao_ignite.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-29 17:46:56 -0700
committerKeith Packard <keithp@keithp.com>2009-04-29 17:46:56 -0700
commitde7814c738488c2c16c6216c93fa78128895e5d5 (patch)
tree07a295d9f3786623e382a92bbab811ac19a78016 /ao_ignite.c
parent4ae74fffb939d67424efa3e7f433637f1f920ebc (diff)
Use 'char' instead of 'uint8_t' for character data
String and character constants are of char type, so using uint8_t causes promotion to 16-bit types when comparing the two.
Diffstat (limited to 'ao_ignite.c')
-rw-r--r--ao_ignite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ao_ignite.c b/ao_ignite.c
index b89fd2f7..be291523 100644
--- a/ao_ignite.c
+++ b/ao_ignite.c
@@ -118,7 +118,7 @@ ao_igniter(void)
}
static uint8_t
-ao_match_word(__code uint8_t *word)
+ao_match_word(__code char *word)
{
while (*word) {
if (ao_cmd_lex_c != *word) {
@@ -147,12 +147,12 @@ ao_ignite_manual(void)
}
}
-static __code uint8_t *igniter_status_names[] = {
+static __code char *igniter_status_names[] = {
"unknown", "ready", "active", "open"
};
void
-ao_ignite_print_status(enum ao_igniter igniter, __code uint8_t *name) __reentrant
+ao_ignite_print_status(enum ao_igniter igniter, __code char *name) __reentrant
{
enum ao_igniter_status status = ao_igniter_status(igniter);
printf("Igniter: %6s Status: %s\n",