diff options
| author | Michael Brown | 2006-05-19 16:51:59 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-05-19 16:51:59 +0200 |
| commit | 0ab92faedbe423fa9b93f01b6d1971f28b0b3139 (patch) | |
| tree | e376787cc83e2bcbda8d38a8e514288cdd82809f /src/arch/i386/include | |
| parent | Documented login parameters that we negotiate. (diff) | |
| download | ipxe-0ab92faedbe423fa9b93f01b6d1971f28b0b3139.tar.gz ipxe-0ab92faedbe423fa9b93f01b6d1971f28b0b3139.tar.xz ipxe-0ab92faedbe423fa9b93f01b6d1971f28b0b3139.zip | |
Use typeof(sizeof(...)) to define a size_t. This stops gcc complaining
about format errors for %zX arguments.
Diffstat (limited to 'src/arch/i386/include')
| -rw-r--r-- | src/arch/i386/include/stdint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/include/stdint.h b/src/arch/i386/include/stdint.h index efade219b..9a07b8cb8 100644 --- a/src/arch/i386/include/stdint.h +++ b/src/arch/i386/include/stdint.h @@ -1,7 +1,7 @@ #ifndef STDINT_H #define STDINT_H -typedef unsigned long size_t; +typedef typeof(sizeof(int)) size_t; typedef signed long ssize_t; typedef signed long off_t; |
