Message ID | 682bce8d-61cb-0e50-1a7e-93328e3d8c08@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index c9ce3e3..0dcec29 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -417,7 +417,7 @@ static void print_deps(void) goto close_fd; } map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); - if ((long) map == -1) { + if (map == MAP_FAILED) { perror("fixdep: mmap"); goto close_fd; }