lkml.org 
[lkml]   [2003]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Allow signed integers in kernelconfig
Date
The following patch makes it possible to have signed integers
for kernel configuration parameters (this was allowed before
2.4.21).

/Mikael

diff -u -ru linux/scripts/Configure linux_patch/scripts/Configure
--- linux/scripts/Configure Fri Jun 13 16:51:39 2003
+++ linux_patch/scripts/Configure Wed Jul 2 14:43:19 2003
@@ -350,7 +350,7 @@
def=${old:-$3}
while :; do
readln "$1 ($2) [$def] " "$def" "$old"
- if expr "$ans" : '[0-9]*$' > /dev/null; then
+ if expr "$ans" : '[+-]\?[0-9]*$' > /dev/null; then
define_int "$2" "$ans"
break
else

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.028 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site