1999-09-12 Donn Terry <donn@interix.com>

* lexsup.c (parse_args): Use strtoul for --split-by-reloc
	argument.
This commit is contained in:
Ian Lance Taylor 1999-09-12 16:40:09 +00:00
parent 03983865c3
commit d98dd8ba26
2 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,9 @@
1999-09-12 Donn Terry <donn@interix.com> 1999-09-12 Donn Terry <donn@interix.com>
* lexsup.c (parse_args): Use strtoul for --split-by-reloc
argument.
* lexsup.c (parse_args): If we get an unrecognized argument, * lexsup.c (parse_args): If we get an unrecognized argument,
mention --help. mention --help.

View File

@ -954,7 +954,7 @@ the GNU General Public License. This program has absolutely no warranty.\n"));
ignored. Someday we should handle it correctly. FIXME. */ ignored. Someday we should handle it correctly. FIXME. */
break; break;
case OPTION_SPLIT_BY_RELOC: case OPTION_SPLIT_BY_RELOC:
config.split_by_reloc = atoi (optarg); config.split_by_reloc = strtoul (optarg, NULL, 0);
break; break;
case OPTION_SPLIT_BY_FILE: case OPTION_SPLIT_BY_FILE:
config.split_by_file = true; config.split_by_file = true;