Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix build with GCC
Alexandre Perrin committed 12 years ago
commit d5d8f11e81ff8417daaa623565d635da3d99b77f
parent f2b6b53
2 files changed +3 -3
modified libpkg/fetch.c
@@ -323,10 +323,10 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest, time_t *t
		sz = st.size;
	}

-
	begin_dl = time(NULL);
+
	now = begin_dl = time(NULL);
	tmout = fetch_timeout;
	while (done < sz) {
-
		if (kq == - 1) {
+
		if (kq == -1) {
			if ((r = fread(buf, 1, sizeof(buf), remote)) < 1)
				break;
		} else {
modified libpkg/pkg_manifest.c
@@ -510,7 +510,7 @@ static void
parse_dep(struct pkg *pkg, struct pkg_manifest_parser *p)
{
	int state = 0;
-
	char *orig, *vers = NULL;
+
	char *orig = NULL, *vers = NULL;

	sbuf_clear(p->buf);
	sbuf_cat(p->buf, p->event.data.scalar.value);