* lexsup.c (parse_args): Cast fopen result to PTR before storing
authorIan Lance Taylor <ian@airs.com>
Sun, 2 Jul 1995 21:53:21 +0000 (21:53 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 2 Jul 1995 21:53:21 +0000 (21:53 +0000)
it in link_info.base_file.  Fix indentation.

ld/ChangeLog
ld/lexsup.c

index ae09d767f713c04d51f5c96eb3ca07c0c7b2b79b..9d95aa1e91dc91c6a22ec5c48d043c509e54d3c6 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jul  2 17:52:34 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * 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  <sac@slash.cygnus.com>
 
        * ldmain.c (main): Always initialize PE info in link_info.
index 291c432839394800ed52d09aa47921d2fa11ba99..9fb28cea537c073dfaf1cba7de77b39626cc96aa 100644 (file)
@@ -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;