]> Cypherpunks repositories - gostls13.git/commitdiff
lib9/create.c: delete unused variable
authorRob Pike <r@golang.org>
Thu, 14 Apr 2011 06:12:48 +0000 (23:12 -0700)
committerRob Pike <r@golang.org>
Thu, 14 Apr 2011 06:12:48 +0000 (23:12 -0700)
fixes build with GCC4.6

R=adg
CC=golang-dev
https://golang.org/cl/4396048

src/lib9/create.c

index 59845ba91f89e5768eb65d8d8dda0a4345edeb93..d7023aea029ea016e856e6414fc1d3de1ffd24ea 100644 (file)
@@ -37,9 +37,8 @@ THE SOFTWARE.
 int
 p9create(char *path, int mode, ulong perm)
 {
-       int fd, umode, rclose, rdwr;
+       int fd, umode, rclose;
 
-       rdwr = mode&3;
        rclose = mode&ORCLOSE;
        mode &= ~ORCLOSE;