r25554: Convert last instances of BOOL, True and False to the standard types.
[kamenim/samba.git] / source4 / scripting / ejs / smbcalls_data.c
index 60dadc51658c1c963e6da0c4594d4b6284603524..a98266c3da0d7e7fee0e6d0b8b515fdbf70f8470 100644 (file)
@@ -107,7 +107,7 @@ failed:
 static int ejs_blobCompare(MprVarHandle eid, int argc, struct MprVar **argv)
 {
        DATA_BLOB *blob1, *blob2;
-       BOOL ret = False;
+       bool ret = false;
 
        if (argc != 2) {
                ejsSetErrorMsg(eid, "blobCompare invalid arguments");
@@ -118,24 +118,24 @@ static int ejs_blobCompare(MprVarHandle eid, int argc, struct MprVar **argv)
        blob2 = mprToDataBlob(argv[1]);
 
        if (blob1 == blob2) {
-               ret = True;
+               ret = true;
                goto done;
        }
        if (blob1 == NULL || blob2 == NULL) {
-               ret = False;
+               ret = false;
                goto done;
        }
 
        if (blob1->length != blob2->length) {
-               ret = False;
+               ret = false;
                goto done;
        }
 
        if (memcmp(blob1->data, blob2->data, blob1->length) != 0) {
-               ret = False;
+               ret = false;
                goto done;
        }
-       ret = True;
+       ret = true;
 
 done:
        mpr_Return(eid, mprCreateBoolVar(ret));