mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +00:00
Use memset() rather than OTMemzero(), and hence remove the need to weak link
against OTUtilityLib. [originally from svn r2550]
This commit is contained in:
parent
5d90fd4d1d
commit
f3eff8b5de
@ -5,6 +5,8 @@
|
|||||||
#include <OpenTransport.h>
|
#include <OpenTransport.h>
|
||||||
#include <OpenTptInternet.h>
|
#include <OpenTptInternet.h>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define DEFINE_PLUG_METHOD_MACROS
|
#define DEFINE_PLUG_METHOD_MACROS
|
||||||
#include "putty.h"
|
#include "putty.h"
|
||||||
#include "network.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 */
|
/* FIXME: bolt the port onto the end */
|
||||||
|
|
||||||
OTMemzero(&connectCall, sizeof(TCall));
|
memset(&connectCall, 0, sizeof(TCall));
|
||||||
connectCall.addr.buf = (UInt8 *) &(addr->address);
|
connectCall.addr.buf = (UInt8 *) &(addr->address);
|
||||||
connectCall.addr.len = sizeof(DNSAddress);
|
connectCall.addr.len = sizeof(DNSAddress);
|
||||||
|
|
||||||
|
@ -647,7 +647,6 @@ Libs_PPC = {Libs_CFM} \xb6
|
|||||||
"{SharedLibraries}OpenTransportLib" \xb6
|
"{SharedLibraries}OpenTransportLib" \xb6
|
||||||
-weaklib OTClientLib \xb6
|
-weaklib OTClientLib \xb6
|
||||||
-weaklib OTClientUtilLib \xb6
|
-weaklib OTClientUtilLib \xb6
|
||||||
-weaklib OTUtilityLib \xb6
|
|
||||||
"{SharedLibraries}OpenTptInternetLib" \xb6
|
"{SharedLibraries}OpenTptInternetLib" \xb6
|
||||||
-weaklib OTInetClientLib \xb6
|
-weaklib OTInetClientLib \xb6
|
||||||
"{PPCLibraries}StdCRuntime.o" \xb6
|
"{PPCLibraries}StdCRuntime.o" \xb6
|
||||||
|
Loading…
Reference in New Issue
Block a user