Skip to content

Commit

Permalink
get rid of puts_plus & fix -pedantic
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec42 committed Jan 6, 2014
1 parent ab199f8 commit 07397fd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions firmware/applications/serial/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ char funkencrypt=0;
#error "CDC is not defined"
#endif

#define puts_plus puts

/**************************************************************************/

uint32_t thekey[4] = { 0x0, 0x0, 0x0, 0x0 };
Expand Down Expand Up @@ -129,7 +131,7 @@ static uint8_t * hextobyte(char * input, int *len){
};
*len=bp;
return buf;
};
}

static uint32_t gethexval(char * input){
int len;
Expand All @@ -138,7 +140,7 @@ static uint32_t gethexval(char * input){
while(--len>0)
v=v*256+(*++hex);
return v;
};
}

static int process(char * input){
if(input == NULL || input[0]==0)
Expand Down Expand Up @@ -473,4 +475,4 @@ static int process(char * input){
};
puts("D done.\r\n");
return 0;
};
}

0 comments on commit 07397fd

Please sign in to comment.