From 243e769870661251e1de092134e44f14c701e9cf Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 2 Jul 1995 21:53:21 +0000 Subject: [PATCH] * lexsup.c (parse_args): Cast fopen result to PTR before storing it in link_info.base_file. Fix indentation. --- ld/ChangeLog | 5 +++++ ld/lexsup.c | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index ae09d767f7..9d95aa1e91 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Sun Jul 2 17:52:34 1995 Ian Lance Taylor + + * lexsup.c (parse_args): Cast fopen result to PTR before storing + it in link_info.base_file. Fix indentation. + Wed Jun 28 17:11:25 1995 Steve Chamberlain * ldmain.c (main): Always initialize PE info in link_info. diff --git a/ld/lexsup.c b/ld/lexsup.c index 291c432839..9fb28cea53 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;