#include <string.h>
#include <unistd.h>
-#define LINESIZE 1024
#define PIDFN "/tmp/fakehttp.pid"
int serve(const char *, const char *);
}
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));