summaryrefslogtreecommitdiffabout
path: root/src/mmap.c
Side-by-side diff
Diffstat (limited to 'src/mmap.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/mmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mmap.c b/src/mmap.c
index 48e84ae..148b852 100644
--- a/src/mmap.c
+++ b/src/mmap.c
@@ -367,6 +367,10 @@ _gdbm_mapped_lseek (GDBM_FILE dbf, off_t offset, int whence)
needle = file_size - offset;
break;
}
+
+ default:
+ errno = EINVAL;
+ return -1;
}
if (needle < 0)

Return to:

Send suggestions and report system problems to the System administrator.