[patch] Returning value from void function (kernel/signal.c) (240t8p1)

From: Rasmus Andersen (rasmus@jaquet.dk)
Date: Thu Aug 31 2000 - 15:49:02 EST


Hi.

I guess the threads stuff introduced this minor compile warning:

signal.c: In function `handle_stop_signal':
signal.c:367: warning: `return' with a value, in function returning void

The following small patch fixes this:

--- linux-240test8-pre1/kernel/signal.c Tue Aug 29 22:20:51 2000
+++ linux/kernel/signal.c Thu Aug 31 22:38:48 2000
@@ -364,7 +364,7 @@
                         recalc_sigpending(t);
                 break;
         }
- return 0;
+ return;
 }
 
 static int deliver_signal(int sig, struct siginfo *info, struct task_struct *t)

-- 
Regards,
        Rasmus(rasmus@jaquet.dk)

I believe that people would be alive today if we had the death penalty. -- Nancy Reagan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:28 EST