summaryrefslogtreecommitdiffstats
path: root/include/param.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-07-04 09:09:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-11 08:14:33 +0200
commit76c0935726672e5d87608eddfe79f127c9a3bc45 (patch)
treefb49812c69dc75bb686e44aeb43dbe3b8340d897 /include/param.h
parent9d7b0ba957a665d6013c4fa53df04ac324618a40 (diff)
downloadbarebox-76c0935726672e5d87608eddfe79f127c9a3bc45.tar.gz
barebox-76c0935726672e5d87608eddfe79f127c9a3bc45.tar.xz
Make IPaddr_t a 32bit type
unsigned long is 64bit wide on some architectures. Make IPaddr_t a typedef to uint32_t to make sure it's 32bit wide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/param.h')
-rw-r--r--include/param.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/param.h b/include/param.h
index 24827c5e78..8f200df847 100644
--- a/include/param.h
+++ b/include/param.h
@@ -7,7 +7,7 @@
#define PARAM_FLAG_RO (1 << 0)
struct device_d;
-typedef unsigned long IPaddr_t;
+typedef uint32_t IPaddr_t;
struct param_d {
const char* (*get)(struct device_d *, struct param_d *param);