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