Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t5000: silence unzip availability check
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index 672a1e409760d33ad704cec098af3864f06a3a38..e33d06b87c978ad7484c9d6bf972681c3d6cdeb0 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-1,10
+1,8
@@
-#include <stdio.h>
-#include <stdlib.h>
-#include "strbuf.h"
#include "cache.h"
+#include "strbuf.h"
void strbuf_init(struct strbuf *sb) {
- sb->buf =
0
;
+ sb->buf =
NULL
;
sb->eof = sb->alloc = sb->len = 0;
}
@@
-41,4
+39,3
@@
void read_line(struct strbuf *sb, FILE *fp, int term) {
sb->eof = 1;
strbuf_end(sb);
}
-