LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lcdproc-fix-return.diff of Package LCDproc (Project home:sagiben)

---
 clients/lcdexec/lcdexec.c |    2 +-
 clients/lcdproc/main.c    |    2 +-
 clients/lcdvc/lcdvc.c     |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Index: lcdproc-0.5.4/clients/lcdexec/lcdexec.c
===================================================================
--- lcdproc-0.5.4.orig/clients/lcdexec/lcdexec.c
+++ lcdproc-0.5.4/clients/lcdexec/lcdexec.c
@@ -100,7 +100,7 @@ int Quit = 0;			/**< indicate end of mai
 
 
 /* Function prototypes */
-static void exit_program(int val);
+static void exit_program(int val) __attribute__ ((noreturn));
 static void sigchld_handler(int signal);
 static int process_command_line(int argc, char **argv);
 static int process_configfile(char * configfile);
Index: lcdproc-0.5.4/clients/lcdvc/lcdvc.c
===================================================================
--- lcdproc-0.5.4.orig/clients/lcdvc/lcdvc.c
+++ lcdproc-0.5.4/clients/lcdvc/lcdvc.c
@@ -74,7 +74,7 @@ int pidfile_written = FALSE;
 int Quit = 0;			/**< indicate end of main loop */
 
 /* Function prototypes */
-static void exit_program(int val);
+static void exit_program(int val) __attribute__ ((noreturn));
 static int process_command_line(int argc, char **argv);
 static int process_configfile(char *configfile);
 static int main_loop(void);
Index: lcdproc-0.5.4/clients/lcdproc/main.c
===================================================================
--- lcdproc-0.5.4.orig/clients/lcdproc/main.c
+++ lcdproc-0.5.4/clients/lcdproc/main.c
@@ -69,7 +69,7 @@ static struct utsname unamebuf;
 
 /* local prototypes */
 static void HelpScreen(int exit_state);
-static void exit_program(int val);
+static void exit_program(int val) __attribute__ ((noreturn));
 static void main_loop(void);
 static int process_configfile(char *cfgfile);