[parisc-linux] warning: long unsigned int format, time_t arg

John David Anglin dave@hiauly1.hia.nrc.ca
Sun, 21 Sep 2003 15:16:23 -0400 (EDT)


> > /* Note these change from narrow to wide kernels */
> > #ifdef __LP64__
> > typedef unsigned long           __kernel_size_t;
> > typedef long                    __kernel_ssize_t;
> > typedef long                    __kernel_ptrdiff_t;
> > typedef long                    __kernel_time_t;
> > #else
> > typedef unsigned int            __kernel_size_t;
> > typedef int                     __kernel_ssize_t;
> > typedef int                     __kernel_ptrdiff_t;
> > typedef int                     __kernel_time_t;
> > #endif
> > 
> > On narrow kernels, int and long are the same.  So, why not use long
> > for both narrow and wide?  Then, the ifdef can be eliminated.
> 
> I think it's because gcc complains ;-)

Possibly, but the pa seems to be about the only port doing this.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)