diff options
author | Alan Modra <amodra@gmail.com> | 2000-04-07 04:34:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-04-07 04:34:50 +0000 |
commit | 37cc8ec1be0959c1878e79fd2baed888da4a2775 (patch) | |
tree | 3f0c84ec0246e8da024b05540c58b082c583dd31 /binutils/strings.c | |
parent | d311cd50fc8c3fc9b344cc2a893572d6c0ae44d7 (diff) | |
download | gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.zip gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.tar.gz gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.tar.bz2 |
A mostly cosmetic tidy up of warnings and error message reporting.
Diffstat (limited to 'binutils/strings.c')
-rw-r--r-- | binutils/strings.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/binutils/strings.c b/binutils/strings.c index 7f41c70..ab845b0 100644 --- a/binutils/strings.c +++ b/binutils/strings.c @@ -1,5 +1,6 @@ /* strings -- print the strings of printable characters in files - Copyright (C) 1993, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc. + Copyright (C) 1993, 94, 95, 96, 97, 98, 99, 2000 + Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -156,9 +157,7 @@ main (argc, argv) string_min = integer_arg (optarg); if (string_min < 1) { - fprintf (stderr, _("%s: invalid number %s\n"), - program_name, optarg); - exit (1); + fatal (_("invalid number %s"), optarg); } break; @@ -491,8 +490,7 @@ integer_arg (s) if (*p) { - fprintf (stderr, _("%s: invalid integer argument %s\n"), program_name, s); - exit (1); + fatal (_("invalid integer argument %s"), s); } return value; } |