diff options
author | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-12 21:04:36 +0000 |
---|---|---|
committer | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-12 21:04:36 +0000 |
commit | 77ee36547a3ed0e7fad1e176f4a6a9c6fe227861 (patch) | |
tree | 7c0517e7a5a272375d4edee926c13841a6bb89ec /recordmydesktop | |
parent | 6e47cbb9d80dc94751127502bb0786bfcfcc35db (diff) |
include/recordmydesktop.h: Make the global exit_status variable
src/recordmydesktop.c: local here.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@511 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop')
-rw-r--r-- | recordmydesktop/include/recordmydesktop.h | 2 | ||||
-rw-r--r-- | recordmydesktop/src/recordmydesktop.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/recordmydesktop/include/recordmydesktop.h b/recordmydesktop/include/recordmydesktop.h index 98c0cd4..9c63a7f 100644 --- a/recordmydesktop/include/recordmydesktop.h +++ b/recordmydesktop/include/recordmydesktop.h @@ -68,7 +68,5 @@ unsigned int frames_total, //frames calculated by total time expirations int capture_busy, encoder_busy; -int exit_status; - #endif diff --git a/recordmydesktop/src/recordmydesktop.c b/recordmydesktop/src/recordmydesktop.c index 859477a..49f9d1b 100644 --- a/recordmydesktop/src/recordmydesktop.c +++ b/recordmydesktop/src/recordmydesktop.c @@ -30,8 +30,7 @@ int main(int argc,char **argv){ ProgData pdata; - - exit_status=0; + int exit_status = 0; DEFAULT_ARGS(&pdata.args); if(ParseArgs(argc,argv,&pdata.args)){ @@ -177,6 +176,7 @@ int main(int argc,char **argv){ CleanUp(); } } + return exit_status; } |