Don't use chars as ints.

This commit is contained in:
Chris Osborn 2016-05-27 11:54:59 -07:00
parent f9e5ca9b23
commit 550bf677cd
4 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ int parse_ip_data(modem_config *cfg, char *data, int len)
{
// I'm going to cheat and assume it comes in chunks.
int i = 0;
char ch;
int ch;
char text[1025];
int text_len = 0;

View File

@ -194,7 +194,7 @@ int ip232_read(modem_config *cfg, char *data, int len)
int rc;
char buf[256];
int i = 0;
char ch;
int ch;
int text_len = 0;

View File

@ -17,7 +17,7 @@ int nvt_init_config(nvt_vars *vars)
return 0;
}
char get_nvt_cmd_response(char action, char type)
int get_nvt_cmd_response(int action, int type)
{
char rc = 0;

View File

@ -48,7 +48,7 @@ typedef struct nvt_vars {
char term[256];
} nvt_vars;
extern char get_nvt_cmd_response(char action, char type);
extern int get_nvt_cmd_response(int action, int type);
extern int parse_nvt_subcommand(int fd, nvt_vars *vars, char *data, int len, int speed);
extern int parse_nvt_command(int fd, nvt_vars *vars, nvtCommand action, nvtOption opt, int parity);
extern int nvt_init_config(nvt_vars *vars);