Commit Diff


commit - f26ab49efa7d801b456e5fbaacd479bf1eacca44a874a65c074ec2c4eab7b403
commit + 79b4ed580507388221abfe1530830fd6412dbae5f6a02074342ea1c4ba86ad53
blob - 464e4772b0a59c8dfd4fe91f9ce6e1f3f128e9475f73ffcfa175228a3964f98a
blob + cd948336cf72198f33b7aff532f4776f93c5c9a1a73a0d4adb8a7c065b299037
--- libexec/got-fetch-http/got-fetch-http.c	
+++ libexec/got-fetch-http/got-fetch-http.c	
@@ -47,8 +47,6 @@
 #define MINIMUM(a, b)	((a) < (b) ? (a) : (b))
 #define hasprfx(str, p)	(strncasecmp(str, p, strlen(p)) == 0)
 
-FILE *tmp;
-
 static int	verbose;
 
 static char *
@@ -585,7 +583,6 @@ main(int argc, char **argv)
 
 	ungetc(ch, stdin);
 	if (upload_request(https, host, port, path, stdin) == -1) {
-		fflush(tmp);
 		errx(1, "failed to upload request");
 	}