converted stdin to int with fileno before setting the file descriptor - vx32 - Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log
Files
Refs
---
commit 037fe6d6643e0364dc831360649d437e030def44
parent a3eb8414b0900d956cda65c5017587d15fba78ea
Author: John (EBo) David 
Date:   Tue, 22 Jun 2010 05:39:41 -0500

converted stdin to int with fileno before setting the file descriptor

Diffstat:
  M src/9vx/main.c                      |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/9vx/main.c b/src/9vx/main.c
@@ -306,7 +306,7 @@ readini(char *fn)
         char *cp, *p, *q;
 
         if(strcmp(fn, "-") == 0)
-                fd = stdin;
+                fd = fileno(stdin);
         else if((fd = open(fn, OREAD)) < 0)
                 return -1;