diff --git a/source/enet/Makefile.in b/source/enet/Makefile.in index 0dbe2b42..948933c5 100755 --- a/source/enet/Makefile.in +++ b/source/enet/Makefile.in @@ -39,8 +39,8 @@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(enetinclude_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/libenet.pc.in $(top_srcdir)/configure config.guess \ - config.sub depcomp install-sh ltmain.sh missing mkinstalldirs + $(srcdir)/libenet.pc.in $(top_srcdir)/configure ChangeLog \ + config.guess config.sub depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ @@ -50,7 +50,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = libenet.pc CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; diff --git a/source/enet/host.c b/source/enet/host.c index 22d7dfa6..8bb2433f 100755 --- a/source/enet/host.c +++ b/source/enet/host.c @@ -142,7 +142,7 @@ enet_host_destroy (ENetHost * host) enet_peer_reset (currentPeer); } - if (host -> compressor.context && host -> compressor.destroy) + if (host -> compressor.context != NULL && host -> compressor.destroy) (* host -> compressor.destroy) (host -> compressor.context); enet_free (host -> peers); @@ -270,7 +270,7 @@ enet_host_broadcast (ENetHost * host, enet_uint8 channelID, ENetPacket * packet) void enet_host_compress (ENetHost * host, const ENetCompressor * compressor) { - if (host -> compressor.context && host -> compressor.destroy) + if (host -> compressor.context != NULL && host -> compressor.destroy) (* host -> compressor.destroy) (host -> compressor.context); if (compressor)