Skip to content

Commit

Permalink
ctk-curses: style fixes
Browse files Browse the repository at this point in the history
Thanks tools/contiki-indent
  • Loading branch information
mmuman committed Mar 31, 2013
1 parent a43601b commit 476be8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platform/native/ctk/ctk-curses.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ static unsigned char ctk_color_map[8] = {
};

/*-----------------------------------------------------------------------------------*/
static unsigned char map_color(unsigned char color)
static unsigned char
map_color(unsigned char color)
{
unsigned char c;

c = ctk_color_map[color & 0x0f];
c |= ctk_color_map[(color >> 4) & 0x07] << 4;
return c;
Expand Down Expand Up @@ -450,6 +452,7 @@ char
ctk_arch_getkey(void)
{
char k;

console_read();
k = keys[keys_out++];

Expand Down

0 comments on commit 476be8d

Please sign in to comment.