multi v0.1.1
Avril 4 years ago
parent b651be7546
commit 040218dc04
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -37,11 +37,10 @@ int main(int argc, char** argv)
return -1; return -1;
} }
if (map1.len != map2.len) return 2;
if (memcmp(map1.ptr, map2.ptr, map1.len) != 0) return 1;
register int rval=0; register int rval=0;
if (map1.len != map2.len) rval = 2;
else if (memcmp(map1.ptr, map2.ptr, map1.len) != 0) rval = 1;
if(!unmap_and_close(map1)) { if(!unmap_and_close(map1)) {
fprintf(stderr, "Failed to unmap and close %s", f1); fprintf(stderr, "Failed to unmap and close %s", f1);
rval=-1; rval=-1;

Loading…
Cancel
Save