r9990: Fix some 64-bit size_t warnings.
authorTim Potter <tpot@samba.org>
Sat, 3 Sep 2005 11:50:33 +0000 (11:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:36:26 +0000 (13:36 -0500)
source/scripting/ejs/smbcalls_data.c

index a3501b7d31ce52308cb6064ce5fd4d0c3536fd1c..4859de94d7432462a9f56b1e87047aed43cc5f99 100644 (file)
@@ -191,7 +191,7 @@ static int ejs_regToVar(MprVarHandle eid, int argc, struct MprVar **argv)
 
        case REG_DWORD: {
                if (blob->length != 4) {
-                       ejsSetErrorMsg(eid, "regToVar invalid REG_DWORD length %d", blob->length);
+                       ejsSetErrorMsg(eid, "regToVar invalid REG_DWORD length %ld", (long)blob->length);
                        return -1;
                }
                v = mprCreateNumberVar(IVAL(blob->data, 0));
@@ -200,7 +200,7 @@ static int ejs_regToVar(MprVarHandle eid, int argc, struct MprVar **argv)
 
        case REG_DWORD_BIG_ENDIAN: {
                if (blob->length != 4) {
-                       ejsSetErrorMsg(eid, "regToVar invalid REG_DWORD_BIG_ENDIAN length %d", blob->length);
+                       ejsSetErrorMsg(eid, "regToVar invalid REG_DWORD_BIG_ENDIAN length %ld", (long)blob->length);
                        return -1;
                }
                v = mprCreateNumberVar(RIVAL(blob->data, 0));
@@ -209,7 +209,7 @@ static int ejs_regToVar(MprVarHandle eid, int argc, struct MprVar **argv)
 
        case REG_QWORD: {
                if (blob->length != 8) {
-                       ejsSetErrorMsg(eid, "regToVar invalid REG_QWORD length %d", blob->length);
+                       ejsSetErrorMsg(eid, "regToVar invalid REG_QWORD length %ld", (long)blob->length);
                        return -1;
                }
                v = mprCreateNumberVar(BVAL(blob->data, 0));