X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fcore.c;h=c143776b9d391983af4e32f237ccb5af924d6502;hb=d1ad85a6e6eead5ba7a2950c3d63f39924397353;hp=bcdb9a4de484d467d52b3f09703c0430de95e322;hpb=166557e7b19db0013a7ab307a08f2c78cd243144;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/core.c b/bfd/core.c index bcdb9a4de4..c143776b9d 100644 --- a/bfd/core.c +++ b/bfd/core.c @@ -49,7 +49,7 @@ DEFUN(bfd_core_file_failing_command,(abfd), bfd *abfd) { if (abfd->format != bfd_core) { - bfd_error = invalid_operation; + bfd_set_error (bfd_error_invalid_operation); return NULL; } return BFD_SEND (abfd, _core_file_failing_command, (abfd)); @@ -72,7 +72,7 @@ bfd_core_file_failing_signal (abfd) bfd *abfd; { if (abfd->format != bfd_core) { - bfd_error = invalid_operation; + bfd_set_error (bfd_error_invalid_operation); return 0; } return BFD_SEND (abfd, _core_file_failing_signal, (abfd)); @@ -97,7 +97,7 @@ core_file_matches_executable_p (core_bfd, exec_bfd) bfd *core_bfd, *exec_bfd; { if ((core_bfd->format != bfd_core) || (exec_bfd->format != bfd_object)) { - bfd_error = wrong_format; + bfd_set_error (bfd_error_wrong_format); return false; }