diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/options/build_opt_tbl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/options/build_opt_tbl.c b/util/options/build_opt_tbl.c index 91906a967c..0a27c39e1d 100644 --- a/util/options/build_opt_tbl.c +++ b/util/options/build_opt_tbl.c @@ -217,7 +217,7 @@ int main(int argc, char **argv) struct cmos_entries *ce; struct cmos_enums *c_enums, *c_enums_start; struct cmos_checksum *cs; - unsigned char line[INPUT_LINE_MAX]; + char line[INPUT_LINE_MAX]; unsigned char uc; int entry_mode=0; int enum_mode=0; @@ -229,7 +229,7 @@ int main(int argc, char **argv) int entries_length; int enum_length; int len; - unsigned char buf[16]; + char buf[16]; for(i=1;i<argc;i++) { if(argv[i][0]!='-') { @@ -332,7 +332,7 @@ int main(int argc, char **argv) fprintf(stderr, "Error - Length is to long in line \n%s\n",line); exit(1); } - if (!is_ident(ce->name)) { + if (!is_ident((char *)ce->name)) { fprintf(stderr, "Error - Name %s is an invalid identifier in line\n %s\n", ce->name, line); @@ -341,7 +341,7 @@ int main(int argc, char **argv) /* put in the record type */ ce->tag=LB_TAG_OPTION; /* calculate and save the record length */ - len=strlen(ce->name)+1; + len=strlen((char *)ce->name)+1; /* make the record int aligned */ if(len%4) len+=(4-(len%4)); @@ -541,7 +541,7 @@ int main(int argc, char **argv) if (ce->config == 'r') { continue; } - if (!is_ident(ce->name)) { + if (!is_ident((char *)ce->name)) { fprintf(stderr, "Invalid identifier: %s\n", ce->name); exit(1); |