bitcoin-cli.cpp: Use symbolic constant for exit code #7989

pull tuladhar wants to merge 1 commits into bitcoin:master from tuladhar:patch-2 changing 1 files +1 −1
  1. tuladhar commented at 4:48 PM on May 2, 2016: contributor

    No description provided.

  2. bitcoin-cli.cpp: Use symbolic constant for exit code 9a8a7d0115
  3. paveljanik commented at 6:01 PM on May 2, 2016: contributor

    Looks much better, ACK https://github.com/bitcoin/bitcoin/pull/7989/commits/9a8a7d011564c43231d16e6e3a25c73f0c76fde1

    No need to open new PR next time :-)

  4. MarcoFalke added the label Refactoring on May 3, 2016
  5. laanwj merged this on May 4, 2016
  6. laanwj closed this on May 4, 2016

  7. laanwj referenced this in commit da46f9fd66 on May 4, 2016
  8. MarcoFalke commented at 9:40 AM on May 4, 2016: member

    I think the motivation for this change was https://stackoverflow.com/questions/461449/return-statement-vs-exit-in-main , so the commit message would be still "wrong".

    But the code looks good. utACK 9a8a7d0

  9. laanwj commented at 9:44 AM on May 4, 2016: member

    It's no less wrong or right, IMO, but it harmonizes the function a bit - all of the other exits from main() use return EXIT_FAILURE.

  10. tuladhar deleted the branch on May 4, 2016
  11. tuladhar commented at 1:27 PM on May 4, 2016: contributor

    @laanwj Thanks for the merge!

  12. tuladhar restored the branch on Oct 2, 2016
  13. zkbot referenced this in commit 3b0a5bcd24 on Apr 13, 2018
  14. zkbot referenced this in commit 65a8f9f201 on Apr 13, 2018
  15. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me