lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.1.10.0804251711400.6645@fbirervta.pbzchgretzou.qr>
Date:	Fri, 25 Apr 2008 17:12:27 +0200 (CEST)
From:	Jan Engelhardt <jengelh@...putergmbh.de>
To:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
cc:	Harvey Harrison <harvey.harrison@...il.com>,
	Ingo Molnar <mingo@...e.hu>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] sched: add statics, don't return void expressions


On Friday 2008-04-25 14:42, Peter Zijlstra wrote:
>
>Sure, but this was just to show the idiom at hand; an actual use case
>would be something like this:
>
>void bar(void)
>{
>	if (cond)
>		return foo();
>
>	/* do stuff ourselves */
>}
>
>Leaving out the return here does have side-effects.
>
Of course. You do not get that luxury in the middle of the function :^)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ