summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-07-19 21:20:53 +0200
committerLennart Poettering <lennart@poettering.net>2008-07-19 21:20:53 +0200
commit4c25cfd18d2fa54a7008bd92c2d16697ff558005 (patch)
tree247efd3f80adf2da7174a954a339abdee3db72f5
parent329654aa3bc0134a01e1f509ffb336b4fed287dc (diff)
remove casting warning
-rw-r--r--strpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strpool.c b/strpool.c
index 63d5e2a..32f1ed7 100644
--- a/strpool.c
+++ b/strpool.c
@@ -553,7 +553,7 @@ static int process(FILE *in, FILE *out, const char*ifname) {
"#define STRPOOL\n"
"#endif\n"
"#ifndef _P\n"
- "#define _P(x) (_strpool_ + (unsigned) (x))\n"
+ "#define _P(x) (_strpool_ + ((x) - (const char*) 0))\n"
"#endif\n\n");
dump_text(out, first);