public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] include/scsi/scsi.h replace u8 in 2.5.69
@ 2003-05-14  6:39 Douglas Gilbert
  2003-05-14  8:02 ` Christoph Hellwig
  0 siblings, 1 reply; 6+ messages in thread
From: Douglas Gilbert @ 2003-05-14  6:39 UTC (permalink / raw)
  To: linux-scsi

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

Here is a simple patch to replace the single occurrence
of "u8" with "u_char" in include/scsi/scsi.h .

While working on an application (to test sgbind) that
needs to include the kernel rather than the glibc
headers, it is a nuisance to have to add:
    typedef unsigned char u8;
before including /usr/src/linux/include/scsi/scsi.h

Perhaps we should be moving toward the official C99
typedef: uint8_t which is defined in stdint.h

Doug Gilbert

[-- Attachment #2: scsi_h_2569.diff --]
[-- Type: text/plain, Size: 274 bytes --]

--- linux/include/scsi/scsi.h	2003-02-11 08:39:21.000000000 +1000
+++ linux/include/scsi/scsi.h2569fix	2003-05-14 12:41:48.000000000 +1000
@@ -201,7 +201,7 @@
  * ScsiLun: 8 byte LUN.
  */
 typedef struct scsi_lun {
-	u8 scsi_lun[8];
+	u_char scsi_lun[8];
 } ScsiLun;
 
 /*

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-05-14 13:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-14  6:39 [PATCH] include/scsi/scsi.h replace u8 in 2.5.69 Douglas Gilbert
2003-05-14  8:02 ` Christoph Hellwig
2003-05-14 13:05   ` Jeff Garzik
2003-05-14 13:10   ` Douglas Gilbert
2003-05-14 13:14     ` Christoph Hellwig
2003-05-14 13:54     ` Andries Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox