Skip to content
Snippets Groups Projects
Commit 9e69e9b8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix some printf argument types

CID 319023 319065 319134
parent f72dc17b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment