changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: fixed a typo

changeset 5082: 3f95555d7e8c
parent 5081: 94c649383b95
child 5083: 37351cce6c3d
child 5084: 770a738f1363
author: Matthew Veety <mveety@mveety.com>
date: Tue, 09 Feb 2016 17:02:18 -0500
files: sys/src/libgio/openclose.c
description: fixed a typo
     1.1--- a/sys/src/libgio/openclose.c
     1.2+++ b/sys/src/libgio/openclose.c
     1.3@@ -25,7 +25,8 @@ getrdstruct(int fd)
     1.4 	ReadWriter *rval;
     1.5 	if(gio_filedes_st[fd] != 1)
     1.6 		rval = nil;
     1.7-	rval = gio_filedes[fd];
     1.8+	else
     1.9+		rval = gio_filedes[fd];
    1.10 	runlock(&giolock);
    1.11 	return rval;
    1.12 }
    1.13@@ -37,6 +38,7 @@ gopen(ReadWriter* rd, void *aux)
    1.14 	ReadWriter *buf;
    1.15 
    1.16 	wlock(&giolock);
    1.17+	pfd = getnext();
    1.18 	if(pfd == -1){
    1.19 		wunlock(&giolock);
    1.20 		return -1;