X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/012d05c2b62332eb400d66b806e48216d39358c6..6a9e73aa660d24cf9aa417a5ec7e7a73f6bfd266:/test/fakehttp.c diff --git a/test/fakehttp.c b/test/fakehttp.c index 38671f7c..328af80d 100644 --- a/test/fakehttp.c +++ b/test/fakehttp.c @@ -1,5 +1,4 @@ -/* - * fakehttp - A fake HTTP server used by the nmh test suite +/* fakehttp - A fake HTTP server used by the nmh test suite * * This code is Copyright (c) 2014, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -15,7 +14,6 @@ #include #include -#define LINESIZE 1024 #define PIDFN "/tmp/fakehttp.pid" int serve(const char *, const char *); @@ -68,7 +66,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));