lkml.org 
[lkml]   [2008]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: DS cleanup - dont treat 0 as NULL
On Tue, Apr 29, 2008 at 10:23 AM, David Newall <davidn@davidnewall.com> wrote:
> Cyrill Gorcunov wrote:
> > - return 0;
> > + return NULL;
>
> Why? The constant 0 is C's official symbol for a null pointer.
>

Yes, but by using NULL explicilty allows you to separate _pointers_ from
numbers on review process. Or maybe you wanna drop NULL at all? I dont
think you will like that ;)


\
 
 \ /
  Last update: 2008-04-29 09:53    [W:0.084 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site