projects
/
platform
/
upstream
/
libatasmart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
329654a
)
remove casting warning
author
Lennart Poettering
<lennart@poettering.net>
Sat, 19 Jul 2008 19:20:53 +0000
(21:20 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 19 Jul 2008 19:20:53 +0000
(21:20 +0200)
strpool.c
patch
|
blob
|
history
diff --git
a/strpool.c
b/strpool.c
index
63d5e2a
..
32f1ed7
100644
(file)
--- 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);