summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2006-05-19 16:51:59 +0200
committerMichael Brown2006-05-19 16:51:59 +0200
commit0ab92faedbe423fa9b93f01b6d1971f28b0b3139 (patch)
treee376787cc83e2bcbda8d38a8e514288cdd82809f
parentDocumented login parameters that we negotiate. (diff)
downloadipxe-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.
-rw-r--r--src/arch/i386/include/stdint.h2
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;