OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
128d0c5
)
make sure the SEND_NUMBER_STDERR macro doesnt modify the number given to it
author
Mike Frysinger
<vapier@gentoo.org>
Mon, 11 Jul 2005 22:04:57 +0000
(22:04 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Mon, 11 Jul 2005 22:04:57 +0000
(22:04 -0000)
ldso/include/dl-string.h
patch
|
blob
|
history
diff --git
a/ldso/include/dl-string.h
b/ldso/include/dl-string.h
index
8e0c991
..
8e35e6a
100644
(file)
--- a/
ldso/include/dl-string.h
+++ b/
ldso/include/dl-string.h
@@
-306,9
+306,10
@@
static __always_inline char * _dl_simple_ltoahex(char * local, unsigned long i)
_dl_write(2, tmp2, tmp1 - tmp2 + sizeof(tmp) - 1); \
}
-#define SEND_NUMBER_STDERR(
X
, add_a_newline) \
+#define SEND_NUMBER_STDERR(
NUM
, add_a_newline) \
{ \
char tmp[26], v, *tmp2, *tmp1 = tmp; \
+ unsigned long X = (unsigned long)(NUM); \
CONSTANT_STRING_GOT_FIXUP(tmp1); \
tmp2 = tmp1 + sizeof(tmp); \
*--tmp2 = '\0'; \