From 77ee36547a3ed0e7fad1e176f4a6a9c6fe227861 Mon Sep 17 00:00:00 2001 From: enselic Date: Fri, 12 Sep 2008 21:04:36 +0000 Subject: 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 --- recordmydesktop/include/recordmydesktop.h | 2 -- recordmydesktop/src/recordmydesktop.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'recordmydesktop') 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; } -- cgit v1.2.3