tcannot say isnumber - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit c77223280246ddb86def848bb3e24bf6ebe90185
parent 23fdde49f133a4c443fd8d04c710496826f1f54a
Author: rsc 
Date:   Tue, 28 Feb 2006 20:12:18 +0000

cannot say isnumber

Diffstat:
  M src/cmd/upas/nfs/a.h                |      14 +++++++++-----
  M src/cmd/upas/nfs/fs.c               |       2 +-

2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/cmd/upas/nfs/a.h b/src/cmd/upas/nfs/a.h
t@@ -22,11 +22,6 @@ void                mailthread(void (*fn)(void*), void*);
 
 void                warn(char*, ...);
 
-#define esmprint smprint
-#define emalloc(n) mallocz(n, 1)
-#define erealloc realloc
-#define estrdup strdup
-
 enum
 {
         NoEncoding,
t@@ -40,3 +35,12 @@ char*        tcs(char*, char*);
 char*        unrfc2047(char*);
 
 extern Imap *imap;
+
+#undef isnumber
+#define isnumber        upas_isnumber
+
+#define esmprint smprint
+#define emalloc(n) mallocz(n, 1)
+#define erealloc realloc
+#define estrdup strdup
+
diff --git a/src/cmd/upas/nfs/fs.c b/src/cmd/upas/nfs/fs.c
t@@ -222,7 +222,7 @@ fsattach(Req *r)
         respond(r, nil);
 }
 
-int
+static int
 isnumber(char *s)
 {
         int n;