lkml.org 
[lkml]   [2000]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] Returning value from void function (kernel/signal.c) (240t8p1)
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.015 / U:4.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site