X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8e0f9bd3daae9d05dec58026d5a5924367e4e874..94187a80bd60baab4b9c4b949ad820d730578123:/test/fakehttp.c diff --git a/test/fakehttp.c b/test/fakehttp.c index 38671f7c..b18eb230 100644 --- a/test/fakehttp.c +++ b/test/fakehttp.c @@ -15,7 +15,6 @@ #include #include -#define LINESIZE 1024 #define PIDFN "/tmp/fakehttp.pid" int serve(const char *, const char *); @@ -68,7 +67,7 @@ save_req(int conn, FILE *req) } if (r < 0) { e = errno; - fputs("\n", req); /* req body usually has no newline */ + putc('\n', req); /* req body usually has no newline */ fclose(req); if (e != EAGAIN && e != EWOULDBLOCK) { fprintf(stderr, "Unable to read socket: %s\n", strerror(e));