Re: [PATCH] scsi.h uses "u8" which isn't defined.

Dominik Strasser
2003-08-17T13:01:55Z

Christoph Hellwig wrote:
> On Sun, Aug 17, 2003 at 02:42:20PM +0200, Dominik Strasser wrote:
>
>>scsi.h uses "u8" which doesn't seem to be defined.
>>Better use u_char.
>
>
> It's defined in <linux/types.h> as is u_char. But we generally prefer
> explicitly sized types in Linux - and u_char is a BSDism, the right
> not explicitly sized type would be unsigned char.

I am sorry, in 2.6.0-test3 (which I should have mentioned), there is no
u8 in liux/types.h. Just a __u8.
Nevertheless there is a mixture in scsi.h, some lines above, u_char is
used. This is why I chose to use it.

Dominik