X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/012d05c2b62332eb400d66b806e48216d39358c6..c576ad2674c37a1c63f004c71049998f38854c64:/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));