Create the passed socket explicitly in htparser rather than generally in sendreq().
[ashd.git] / lib / req.h
index 942ff35..7fc70be 100644 (file)
--- a/lib/req.h
+++ b/lib/req.h
@@ -15,7 +15,7 @@ void freehthead(struct hthead *head);
 char *getheader(struct hthead *head, char *name);
 void headpreheader(struct hthead *head, const char *name, const char *val);
 void headappheader(struct hthead *head, const char *name, const char *val);
-int sendreq(int sock, struct hthead *req);
+int sendreq(int sock, struct hthead *req, int fd);
 int recvreq(int sock, struct hthead **reqp);
 void replrest(struct hthead *head, char *rest);