summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-18 19:41:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-18 19:41:15 +0000
commit9a0956f8aad221a220b45d0dcc166a63e514302f (patch)
treec2db812e6bc2ebe2e56532ce2c74ccf410440ae0 /src
parent8946bc2a17d78481dfa7928f11c00dba12a1d120 (diff)
Replacement of bzero with memset for solaris 10 compat.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1428 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/helperfuncs.cpp4
-rw-r--r--src/inspircd_io.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 4c7a13a9f..703705f23 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -420,7 +420,7 @@ void WriteCommon(userrec *u, char* text, ...)
va_end(argsPtr);
// FIX: Stops a message going to the same person more than once
- bzero(&already_sent,65536);
+ memset(&already_sent,0,65536);
bool sent_to_at_least_one = false;
@@ -472,7 +472,7 @@ void WriteCommonExcept(userrec *u, char* text, ...)
vsnprintf(textbuffer, MAXBUF, text, argsPtr);
va_end(argsPtr);
- bzero(&already_sent,65536);
+ memset(&already_sent,0,65536);
for (int i = 0; i < MAXCHANS; i++)
{
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index 0b4f66a98..62d145361 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -619,7 +619,7 @@ int ConfValue(char* tag, char* var, int index, char *result,std::stringstream *c
// This will bind a socket to a port. It works for UDP/TCP
int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr)
{
- memcpy((char *)&server,0,sizeof(server));
+ memset((char *)&server,0,sizeof(server));
struct in_addr addy;
inet_aton(addr,&addy);
server.sin_family = AF_INET;