summaryrefslogtreecommitdiff
path: root/src/lib/http/server.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-11-17 12:34:03 -0800
committerRuss Cox <rsc@golang.org>2008-11-17 12:34:03 -0800
commit69fafff674a4c14d650e80bc4d73bc6937398cf3 (patch)
treeaeb58cc993873dadfe1a2adbc63521879b2dd66a /src/lib/http/server.go
parentc86382bcfc0560e6a756cd925f851869eb5a96d5 (diff)
downloadgolang-69fafff674a4c14d650e80bc4d73bc6937398cf3.tar.gz
correctly rounded floating-point conversions
in new package strconv. move atoi etc to strconv too. update fmt, etc to use strconv. R=r DELTA=2232 (1691 added, 424 deleted, 117 changed) OCL=19286 CL=19380
Diffstat (limited to 'src/lib/http/server.go')
-rw-r--r--src/lib/http/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/http/server.go b/src/lib/http/server.go
index 43b4fb1fd..7aef82456 100644
--- a/src/lib/http/server.go
+++ b/src/lib/http/server.go
@@ -13,7 +13,7 @@ import (
"os";
"net";
"http";
- "strings"
+ "strconv";
)
// Serve a new connection.
@@ -39,7 +39,7 @@ func ServeConnection(fd net.Conn, raddr string, f *(*Conn, *Request)) {
export func Serve(l net.Listener, f *(*Conn, *Request)) *os.Error {
// TODO: Make this unnecessary
s, e := os.Getenv("GOMAXPROCS");
- if n, ok := strings.atoi(s); n < 3 {
+ if n, ok := strconv.atoi(s); n < 3 {
print("Warning: $GOMAXPROCS needs to be at least 3.\n");
}