diff options
| author | Keith Packard <keithp@keithp.com> | 2009-04-29 17:46:56 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-04-29 17:46:56 -0700 | 
| commit | de7814c738488c2c16c6216c93fa78128895e5d5 (patch) | |
| tree | 07a295d9f3786623e382a92bbab811ac19a78016 /ao_config.c | |
| parent | 4ae74fffb939d67424efa3e7f433637f1f920ebc (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_config.c')
| -rw-r--r-- | ao_config.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ao_config.c b/ao_config.c index 593029f2..9bb8fd1a 100644 --- a/ao_config.c +++ b/ao_config.c @@ -188,7 +188,7 @@ ao_config_accel_zero_g_set(void) __reentrant  }  struct ao_config_var { -	uint8_t		cmd; +	char		cmd;  	void		(*set)(void) __reentrant;  	void		(*show)(void) __reentrant;  	const char	*help; @@ -225,7 +225,7 @@ __code struct ao_config_var ao_config_vars[] = {  void  ao_config_set(void)  { -	uint8_t	c; +	char	c;  	uint8_t cmd;  	void (*__xdata func)(void) __reentrant;  | 
