This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch: use xexit in objdump.c


Patch to call xexit in objdump.c; its called implicitly with calls to
fatal() but not in usage() and main().

Ok to apply?


2001-11-15  Peter Targett  <peter.targett@arccores.com>

     * objdump.c (usage): Use xexit in place of exit.
     (main): Return with xexit instead.

Index: objdump.c
===================================================================
RCS file: /cvs/src/src/binutils/objdump.c,v
retrieving revision 1.45
diff -c -3 -p -r1.45 objdump.c
*** objdump.c  2001/10/02 06:02:12 1.45
--- objdump.c  2001/11/15 15:09:26
*************** usage (stream, status)
*** 214,220 ****
      }
    if (status == 0)
      fprintf (stream, _("Report bugs to %s.\n"), REPORT_BUGS_TO);
!   exit (status);
  }

  /* 150 isn't special; it's just an arbitrary non-ASCII char value.  */
--- 214,220 ----
      }
    if (status == 0)
      fprintf (stream, _("Report bugs to %s.\n"), REPORT_BUGS_TO);
!   xexit (status);
  }

  /* 150 isn't special; it's just an arbitrary non-ASCII char value.  */
*************** main (argc, argv)
*** 2942,2946 ****

    END_PROGRESS (program_name);

!   return exit_status;
  }
--- 2942,2946 ----

    END_PROGRESS (program_name);

!   xexit (exit_status);
  }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]