[hamradio-commits] [gnss-sdr] 68/236: main returns 0 upon normal ternimation

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Tue Apr 26 16:02:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch next
in repository gnss-sdr.

commit 26ff3dbe1c51e42bee9a8e53ca634d9b15de5c09
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Fri Mar 4 15:26:55 2016 +0100

    main returns 0 upon normal ternimation
    
    The return value for main should indicate how the program exited. Normal
    exit is generally represented by a 0 return value from main. Abnormal
    termination is usually signalled by a non-zero return but there is no
    standard for how non-zero codes are interpreted
---
 src/main/main.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/main.cc b/src/main/main.cc
index 53b2ad9..1053c88 100644
--- a/src/main/main.cc
+++ b/src/main/main.cc
@@ -224,4 +224,5 @@ int main(int argc, char** argv)
 
     google::ShutDownCommandLineFlags();
     std::cout << "GNSS-SDR program ended." << std::endl;
+    return 0;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list