git: 9front

Download patch

ref: ed57b3f99bba96eafd391d54adac93b0126321b6
parent: 3518ae90a9396899270c881d0dbced99b29903f5
author: ftrvxmtrx <devnull@localhost>
date: Fri May 2 00:03:35 EDT 2014

bio: on a second thought, make it one line less

--- a/sys/src/libbio/brdstr.c
+++ b/sys/src/libbio/brdstr.c
@@ -3,13 +3,12 @@
 #include	<bio.h>
 
 static char*
-badd(char *p, int *np, char *data, int ndata, int delim, int nulldelim)
+badd(char *oldp, int *np, char *data, int ndata, int delim, int nulldelim)
 {
 	int n;
-	char *oldp;
+	char *p;
 
 	n = *np;
-	oldp = p;
 	p = realloc(oldp, n+ndata+1);
 	if(p){
 		memmove(p+n, data, ndata);
--