projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ca3ed8
)
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
author
Hoang-Nam Nguyen
<hnguyen@linux.vnet.ibm.com>
Sat, 23 Feb 2008 23:23:37 +0000
(15:23 -0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Sun, 24 Feb 2008 01:12:14 +0000
(17:12 -0800)
lib/vsprintf.c: Fix bug omitting minus sign of numbers (module_param)
Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Cc: Yi Yang <yi.y.yang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c
patch
|
blob
|
history
diff --git
a/lib/vsprintf.c
b/lib/vsprintf.c
index fd987b17bda754b424cb0e9cd9d055056bd1c6f3..6021757a449663074cded737138d31acd83da325 100644
(file)
--- a/
lib/vsprintf.c
+++ b/
lib/vsprintf.c
@@
-234,7
+234,7
@@
int strict_strto##type(const char *cp, unsigned int base, valtype *res) \
int ret; \
if (*cp == '-') { \
ret = strict_strtou##type(cp+1, base, res); \
- if (
ret != 0)
\
+ if (
!ret)
\
*res = -(*res); \
} else \
ret = strict_strtou##type(cp, base, res); \