X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Fsysdump.c;h=65d2ca676bd127b01298c0075d8d7ef295d25700;hb=8fc34799029ef55fd64a6cd72d592aee9e8ac074;hp=38630312c513e135ca7204398523d9f34e9e1dd4;hpb=e98fe4f7b54cbdf29aef9287bbb1bea8801dd05a;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/sysdump.c b/binutils/sysdump.c index 38630312c5..65d2ca676b 100644 --- a/binutils/sysdump.c +++ b/binutils/sysdump.c @@ -1,5 +1,5 @@ /* Sysroff object format dumper. - Copyright (C) 1994, 95, 1998 Free Software Foundation, Inc. + Copyright 1994, 1995, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -41,16 +41,6 @@ static int code; static int addrsize = 4; static FILE *file; -static char * -xcalloc (a, b) - int a; - int b; -{ - char *r = xmalloc (a * b); - memset (r, 0, a * b); - return r; -} - char * getCHARS (ptr, idx, size, max) unsigned char *ptr; @@ -141,8 +131,8 @@ barray getBARRAY (ptr, idx, dsize, max) unsigned char *ptr; int *idx; - int dsize; - int max; + int dsize ATTRIBUTE_UNUSED; + int max ATTRIBUTE_UNUSED; { barray res; int i; @@ -745,7 +735,9 @@ main (ac, av) {NULL, no_argument, 0, 0} }; +#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); @@ -780,17 +772,13 @@ main (ac, av) if (!input_file) { - fprintf (stderr, _("%s: no input file specified\n"), - program_name); - exit (1); + fatal (_("no input file specified")); } file = fopen (input_file, FOPEN_RB); if (!file) { - fprintf (stderr, _("%s: cannot open input file %s\n"), - program_name, input_file); - exit (1); + fatal (_("cannot open input file %s"), input_file); } module ();