From: ben Date: Sun, 12 Jan 2003 01:37:24 +0000 (+0000) Subject: Use memset() rather than OTMemzero(), and hence remove the need to weak link X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/40d387143ed1f8a050c27f68d6c5270d0d4c0945 Use memset() rather than OTMemzero(), and hence remove the need to weak link against OTUtilityLib. git-svn-id: svn://svn.tartarus.org/sgt/putty@2550 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/mac/otnet.c b/mac/otnet.c index fd87df4b..7a2cbd8a 100644 --- a/mac/otnet.c +++ b/mac/otnet.c @@ -5,6 +5,8 @@ #include #include +#include + #define DEFINE_PLUG_METHOD_MACROS #include "putty.h" #include "network.h" @@ -262,7 +264,7 @@ Socket ot_new(SockAddr addr, int port, int privport, int oobinline, /* FIXME: bolt the port onto the end */ - OTMemzero(&connectCall, sizeof(TCall)); + memset(&connectCall, 0, sizeof(TCall)); connectCall.addr.buf = (UInt8 *) &(addr->address); connectCall.addr.len = sizeof(DNSAddress); diff --git a/mkfiles.pl b/mkfiles.pl index 206c39bd..9bd38680 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -647,7 +647,6 @@ Libs_PPC = {Libs_CFM} \xb6 "{SharedLibraries}OpenTransportLib" \xb6 -weaklib OTClientLib \xb6 -weaklib OTClientUtilLib \xb6 - -weaklib OTUtilityLib \xb6 "{SharedLibraries}OpenTptInternetLib" \xb6 -weaklib OTInetClientLib \xb6 "{PPCLibraries}StdCRuntime.o" \xb6