Use memset() rather than OTMemzero(), and hence remove the need to weak link
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Jan 2003 01:37:24 +0000 (01:37 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Jan 2003 01:37:24 +0000 (01:37 +0000)
against OTUtilityLib.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2550 cda61777-01e9-0310-a592-d414129be87e

mac/otnet.c
mkfiles.pl

index fd87df4..7a2cbd8 100644 (file)
@@ -5,6 +5,8 @@
 #include <OpenTransport.h>
 #include <OpenTptInternet.h>
 
+#include <string.h>
+
 #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);
 
index 206c39b..9bd3868 100755 (executable)
@@ -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