[OpenAFS-devel] NULL not defined with current includes on HP-UX 11.x

Derek Atkins warlord@MIT.EDU
19 Mar 2002 16:01:34 -0500


One would expect that, since NULL is a POSIX definition, it would
exist in the headers somewhere.  Perhaps the exact header changed
on HP/UX such that it is not included in src/dir/dir.c?

I'd rather fix the particular header for HP/UX than make this change.

-derek

<nneul@umr.edu> writes:

> Index: src/dir/dir.c
> ===================================================================
> RCS file: /cvs/openafs/src/dir/dir.c,v
> retrieving revision 1.7
> diff -u -r1.7 dir.c
> --- src/dir/dir.c	2002/02/18 21:09:47	1.7
> +++ src/dir/dir.c	2002/03/19 20:52:12
> @@ -140,7 +140,7 @@
>      int blobs, firstelt;
>      register int i;
>      register struct DirEntry *ep;
> -    unsigned short *pp = NULL;
> +    unsigned short *pp = 0;
>      register struct DirHeader *dhp;
>  
>      /* check name quality */
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available