Commit dbc2296e authored by Darren Tucker's avatar Darren Tucker

- (dtucker) [monitor_mm.c openbsd-compat/xmmap.c] Bug #940: cast constants

   to void * to appease picky compilers (eg Tru64's "cc -std1").
parent b7d55e3e
20041006
- (dtucker) [README.privsep] Bug #939: update info about HP-UX Trusted Mode
and other PAM platforms.
- (dtucker) [monitor_mm.c openbsd-compat/xmmap.c] Bug #940: cast constants
to void * to appease picky compilers (eg Tru64's "cc -std1").
20040930
- (dtucker) [configure.ac] Set AC_PACKAGE_NAME. ok djm@
......@@ -1761,4 +1763,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.3557 2004/10/06 10:09:32 dtucker Exp $
$Id: ChangeLog,v 1.3558 2004/10/06 13:15:44 dtucker Exp $
......@@ -92,7 +92,7 @@ mm_create(struct mm_master *mmalloc, size_t size)
mm->mmalloc = mmalloc;
address = xmmap(size);
if (address == MAP_FAILED)
if (address == (void *)MAP_FAILED)
fatal("mmap(%lu): %s", (u_long)size, strerror(errno));
mm->address = address;
......
......@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id: xmmap.c,v 1.5 2004/08/14 13:55:38 dtucker Exp $ */
/* $Id: xmmap.c,v 1.6 2004/10/06 13:15:44 dtucker Exp $ */
#include "includes.h"
......@@ -47,7 +47,7 @@ void *xmmap(size_t size)
# endif
#define MM_SWAP_TEMPLATE "/var/run/sshd.mm.XXXXXXXX"
if (address == MAP_FAILED) {
if (address == (void *)MAP_FAILED) {
char tmpname[sizeof(MM_SWAP_TEMPLATE)] = MM_SWAP_TEMPLATE;
int tmpfd;
mode_t old_umask;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment