const char **level;
for (level=&OPLOCK_LEVEL[0]; *level; level++) {
const char **shm;
- for (shm=&SHARE_MODE[7]; *shm; shm++) {
+ for (shm=&SHARE_MODE[0]; *shm; shm++) {
ret &= test_open_oplock(tctx, tree, fname,
*level, *shm, persistent);
}
const char **type;
for (type=&LEASE_TYPE[0]; *type; type++) {
const char **shm;
- for (shm=&SHARE_MODE[7]; *shm; shm++) {
+ for (shm=&SHARE_MODE[0]; *shm; shm++) {
ret &= test_open_lease(tctx, tree, fname,
*type, *shm, persistent);
}