[kaffe] win32: glitch in winthread.c:setpriority

Marc Kleine-Budde kleine-budde at gmx.de
Sat Oct 18 12:43:02 PDT 2003


Hello!

I don't know if this peace of code is in use, but I found a missing
'break' statement in win32's setpriority code:

bye - Marc
-- 
#!/bin/sh
set - `type $0` 'tr "[a-zA-Z]" "[n-za-mN-ZA-M]"';while [ "$2" != "" ];do \
shift;done; echo 'frq -a -rc '`echo "$0"| $1 `'>$UBZR/.`rpub signature|'`\
echo $1|$1`'`;rpub "Jr ner fvtangher bs obet. Erfvfgnapr vf shgvyr!"'|$1|sh
-------------- next part --------------
Index: winthread.c
===================================================================
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/systems/win32/winthread.c,v
retrieving revision 1.3
diff -u -p -r1.3 winthread.c
--- winthread.c	28 Jul 1999 01:41:14 -0000	1.3
+++ winthread.c	18 Oct 2003 19:26:35 -0000
@@ -113,6 +113,7 @@ jthread_setpriority(jthread_t tid, jint 
 		break;
 	case 2:
 		prio = THREAD_PRIORITY_LOWEST;
+		break;
 	case 3:
 	case 4:
 		prio = THREAD_PRIORITY_BELOW_NORMAL;
-------------- next part --------------
2003-10-18  Marc Kleine-Budde <kleine-budde at gmx.de>

	* kaffe/kaffevm/systems/win32/winthread.c
	(jthread_setpriority)
	added missing break statement in switch-case


More information about the kaffe mailing list