Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 9e69e9b8 authored by Rob Swindell's avatar Rob Swindell 💬

Fix some printf argument types

CID 319023 319065 319134
parent f72dc17b
......@@ -1657,11 +1657,11 @@ js_raw_write(JSContext *cx, uintN argc, jsval *arglist)
rc=JS_SUSPENDREQUEST(cx);
if(write(fileno(p->fp),cp,len)==(size_t)len) {
free(cp);
dbprintf(FALSE, p, "wrote %u raw bytes",len);
dbprintf(FALSE, p, "wrote %lu raw bytes",len);
JS_SET_RVAL(cx, arglist, JSVAL_TRUE);
} else {
free(cp);
dbprintf(TRUE, p, "raw write of %u bytes failed",len);
dbprintf(TRUE, p, "raw write of %lu bytes failed",len);
}
JS_RESUMEREQUEST(cx, rc);
......@@ -1754,7 +1754,7 @@ js_write(JSContext *cx, uintN argc, jsval *arglist)
}
free(cp);
}
dbprintf(FALSE, p, "wrote %u bytes",tlen);
dbprintf(FALSE, p, "wrote %lu bytes", (ulong)tlen);
JS_SET_RVAL(cx, arglist, JSVAL_TRUE);
} else {
free(cp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment