X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2e04b8ea0e57e411665aa6a8814ff65db0d4cd2b..63621a81d16ab743de6b57d47578a9a2c670ad22:/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));