Revert greentea_getc() to return 'int'

pull/4364/head
Azim Khan 2017-05-23 15:20:43 +01:00
parent 088d151507
commit 82d948de6b
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ void GREENTEA_SETUP(const int timeout, const char * host_test);
void greentea_send_kv(const char * key, const char * val);
int greentea_parse_kv(char * key, char * val,
const int key_len, const int val_len);
char greentea_getc();
int greentea_getc();
#endif /* TEST_ENV_C_H */

View File

@ -554,7 +554,7 @@ enum Token {
* \return Next character from the stream or EOF if stream has ended.
*
*/
extern "C" char greentea_getc() {
extern "C" int greentea_getc() {
return greentea_serial->getc();
}
@ -683,7 +683,7 @@ static int isstring(int c) {
*
*/
static int gettok(char *out_str, const int str_size) {
static char LastChar = '!';
static int LastChar = '!';
static int str_idx = 0;
// whitespace ::=