lkml.org 
[lkml]   [2004]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] Use NULL instead of integer 0 in security/selinux/
From
On Fri, Jul 09, 2004 at 09:43:18PM -0400, Kyle Moffett wrote:
>
> most clear? These are all "logically" correct, for the most part, but
> as humans we have certain readability standards.

Nope, B is undefined.

> int some_function(int a, void *b, char *c, unsigned char d, int e);
>
> A) int res = some_function(0,0,0,0,0);
> B) int res = some_function(NULL,NULL,NULL,NULL,NULL);
> C) int res = some_function(0,NULL,NULL,'\0',0);
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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