From: Douglas Gilbert <dougg@torque.net>
To: linux-scsi@vger.kernel.org
Subject: [PATCH] include/scsi/scsi.h replace u8 in 2.5.69
Date: Wed, 14 May 2003 16:39:43 +1000 [thread overview]
Message-ID: <3EC1E4AF.6040404@torque.net> (raw)
[-- 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;
/*
next reply other threads:[~2003-05-14 6:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-14 6:39 Douglas Gilbert [this message]
2003-05-14 8:02 ` [PATCH] include/scsi/scsi.h replace u8 in 2.5.69 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EC1E4AF.6040404@torque.net \
--to=dougg@torque.net \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox