diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-07-02 21:53:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-07-02 21:53:21 +0000 |
commit | 243e769870661251e1de092134e44f14c701e9cf (patch) | |
tree | dedb5b8c303f99eebf1c18964a54f891e57397e7 /ld/lexsup.c | |
parent | be89267cfcf8507dd99bb6f3f53bed3f1eda45db (diff) | |
download | gdb-243e769870661251e1de092134e44f14c701e9cf.zip gdb-243e769870661251e1de092134e44f14c701e9cf.tar.gz gdb-243e769870661251e1de092134e44f14c701e9cf.tar.bz2 |
* lexsup.c (parse_args): Cast fopen result to PTR before storing
it in link_info.base_file. Fix indentation.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index 291c432..9fb28ce 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -432,12 +432,13 @@ parse_args (argc, argv) whole_archive = true; break; case OPTION_BASE_FILE: - link_info.base_file = fopen (optarg,"w"); - if (!link_info.base_file) { - fprintf (stderr, "%s: Can't open base file %s\n", - program_name, optarg); - xexit (1); - } + link_info.base_file = (PTR) fopen (optarg,"w"); + if (link_info.base_file == NULL) + { + fprintf (stderr, "%s: Can't open base file %s\n", + program_name, optarg); + xexit (1); + } break; case 'X': link_info.discard = discard_l; |