Skip to content

Commit a18cd34

Browse files
committed
Fix header name and move return outside of ifdef.
Fixes from Mike Frysinger via Github PR#597.
1 parent fabf4cd commit a18cd34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ AC_CHECK_HEADERS([ \
536536
nlist.h \
537537
poll.h \
538538
stdint.h \
539-
sys/mmap.h \
539+
sys/mman.h \
540540
sys/stat.h \
541541
sys/time.h \
542542
sys/un.h \

sshkey.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,10 @@ sshkey_prekey_alloc(u_char **prekeyp, size_t len)
734734
(void)madvise(prekey, len, MADV_DONTDUMP);
735735
#endif
736736
*prekeyp = prekey;
737-
return 0;
738737
#else
739738
*prekeyp = calloc(1, len);
740739
#endif /* HAVE_MMAP et al */
740+
return 0;
741741
}
742742

743743
static void

0 commit comments

Comments
 (0)