/*
- * $Id: HttpBody.cc,v 1.7 1998/04/09 23:40:39 rousskov Exp $
+ * $Id: HttpBody.cc,v 1.8 1998/04/09 23:51:40 rousskov Exp $
*
* DEBUG: section 56 HTTP Message Body
* AUTHOR: Alex Rousskov
xmemcpy(body->buf, buf, size);
freefunc = &xfree;
} else {
- body->buf = buf;
+ /* @?@ @?@ Fix this cast: we should probably have two httpBodySet()s */
+ body->buf = (char*)buf;
}
body->freefunc = freefunc;
body->size = size;
/*
- * $Id: peer_digest.cc,v 1.10 1998/04/09 23:43:27 rousskov Exp $
+ * $Id: peer_digest.cc,v 1.11 1998/04/09 23:51:41 rousskov Exp $
*
* DEBUG: section 72 Peer Digest Routines
* AUTHOR: Alex Rousskov
static int peerDigestFetchedEnough(DigestFetchState *fetch, char *buf, ssize_t size, const char *step_name);
static void peerDigestFetchFinish(DigestFetchState *fetch, char *buf, const char *err_msg);
static int peerDigestSetCBlock(peer *p, const char *buf);
-static int peerDigestUpdateMask(peer *peer, int offset, const char *buf, int size);
#define max_delay(t1,t2) ((t1) >= (t2) ? (t1) : (t2))
return 1;
}
+#if OLD_CODE
+
/* updates current mask. checks for overflows */
static int
peerDigestUpdateMask(peer *peer, int offset, const char *buf, int size)
}
return 1;
}
+
+#endif
#endif