From cac9bfe475790c8d682e30fd2648099dc3e72fa5 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Wed, 29 Feb 2012 16:05:53 +1100 Subject: testsuite: Replace deprecated bzero with memset This fixes build issues on solaris reported in bug #8767. https://bugzilla.samba.org/show_bug.cgi?id=8767 Autobuild-User: Amitay Isaacs Autobuild-Date: Wed Feb 29 10:39:10 CET 2012 on sn-devel-104 --- testsuite/libsmbclient/src/write/write_1.c | 4 ++-- testsuite/libsmbclient/src/write/write_10.c | 4 ++-- testsuite/libsmbclient/src/write/write_11.c | 4 ++-- testsuite/libsmbclient/src/write/write_12.c | 4 ++-- testsuite/libsmbclient/src/write/write_13.c | 4 ++-- testsuite/libsmbclient/src/write/write_2.c | 4 ++-- testsuite/libsmbclient/src/write/write_3.c | 4 ++-- testsuite/libsmbclient/src/write/write_4.c | 4 ++-- testsuite/libsmbclient/src/write/write_5.c | 4 ++-- testsuite/libsmbclient/src/write/write_6.c | 4 ++-- testsuite/libsmbclient/src/write/write_7.c | 2 +- testsuite/libsmbclient/src/write/write_8.c | 2 +- testsuite/libsmbclient/src/write/write_9.c | 4 ++-- 13 files changed, 24 insertions(+), 24 deletions(-) (limited to 'testsuite/libsmbclient/src/write') diff --git a/testsuite/libsmbclient/src/write/write_1.c b/testsuite/libsmbclient/src/write/write_1.c index 9cc80df763..b3631a02fe 100644 --- a/testsuite/libsmbclient/src/write/write_1.c +++ b/testsuite/libsmbclient/src/write/write_1.c @@ -35,8 +35,8 @@ int main(int argc, char** argv) char url[MAX_BUFF_SIZE]; char* message; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 6 ) { diff --git a/testsuite/libsmbclient/src/write/write_10.c b/testsuite/libsmbclient/src/write/write_10.c index 3796dad40f..65970982d2 100644 --- a/testsuite/libsmbclient/src/write/write_10.c +++ b/testsuite/libsmbclient/src/write/write_10.c @@ -35,8 +35,8 @@ int main(int argc, char** argv) char url[MAX_BUFF_SIZE]; char* message = NULL; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 5 ) { diff --git a/testsuite/libsmbclient/src/write/write_11.c b/testsuite/libsmbclient/src/write/write_11.c index 413b35d587..f0609134ec 100644 --- a/testsuite/libsmbclient/src/write/write_11.c +++ b/testsuite/libsmbclient/src/write/write_11.c @@ -36,8 +36,8 @@ int main(int argc, char** argv) char* message; char* response; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 6 ) { diff --git a/testsuite/libsmbclient/src/write/write_12.c b/testsuite/libsmbclient/src/write/write_12.c index 6d21f889db..b45bc26e60 100644 --- a/testsuite/libsmbclient/src/write/write_12.c +++ b/testsuite/libsmbclient/src/write/write_12.c @@ -36,8 +36,8 @@ int main(int argc, char** argv) char* message; char* response; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 6 ) { diff --git a/testsuite/libsmbclient/src/write/write_13.c b/testsuite/libsmbclient/src/write/write_13.c index 9780646451..9e63528485 100644 --- a/testsuite/libsmbclient/src/write/write_13.c +++ b/testsuite/libsmbclient/src/write/write_13.c @@ -36,8 +36,8 @@ int main(int argc, char** argv) char* message; char* response; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 6 ) { diff --git a/testsuite/libsmbclient/src/write/write_2.c b/testsuite/libsmbclient/src/write/write_2.c index eed3eea284..c9861d8e5c 100644 --- a/testsuite/libsmbclient/src/write/write_2.c +++ b/testsuite/libsmbclient/src/write/write_2.c @@ -35,8 +35,8 @@ int main(int argc, char** argv) char url[MAX_BUFF_SIZE]; char* message; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 6 ) { diff --git a/testsuite/libsmbclient/src/write/write_3.c b/testsuite/libsmbclient/src/write/write_3.c index c91b08a76c..1948bbdf64 100644 --- a/testsuite/libsmbclient/src/write/write_3.c +++ b/testsuite/libsmbclient/src/write/write_3.c @@ -35,8 +35,8 @@ int main(int argc, char** argv) char url[MAX_BUFF_SIZE]; char* message; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 6 ) { diff --git a/testsuite/libsmbclient/src/write/write_4.c b/testsuite/libsmbclient/src/write/write_4.c index 0a1c33740f..be1b13bdc8 100644 --- a/testsuite/libsmbclient/src/write/write_4.c +++ b/testsuite/libsmbclient/src/write/write_4.c @@ -35,8 +35,8 @@ int main(int argc, char** argv) char url[MAX_BUFF_SIZE]; char* message; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 6 ) { diff --git a/testsuite/libsmbclient/src/write/write_5.c b/testsuite/libsmbclient/src/write/write_5.c index 6b21177c4d..eb85445b50 100644 --- a/testsuite/libsmbclient/src/write/write_5.c +++ b/testsuite/libsmbclient/src/write/write_5.c @@ -35,8 +35,8 @@ int main(int argc, char** argv) char url[MAX_BUFF_SIZE]; char* message; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 6 ) { diff --git a/testsuite/libsmbclient/src/write/write_6.c b/testsuite/libsmbclient/src/write/write_6.c index d92e13b1e6..29db98ccbe 100644 --- a/testsuite/libsmbclient/src/write/write_6.c +++ b/testsuite/libsmbclient/src/write/write_6.c @@ -35,8 +35,8 @@ int main(int argc, char** argv) char url[MAX_BUFF_SIZE]; char* message; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 6 ) { diff --git a/testsuite/libsmbclient/src/write/write_7.c b/testsuite/libsmbclient/src/write/write_7.c index acbcf57539..1c581823ad 100644 --- a/testsuite/libsmbclient/src/write/write_7.c +++ b/testsuite/libsmbclient/src/write/write_7.c @@ -33,7 +33,7 @@ int main(int argc, char** argv) int fd = 0; char* message = "Testing"; - bzero(g_workgroup,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); if ( argc == 4 ) { diff --git a/testsuite/libsmbclient/src/write/write_8.c b/testsuite/libsmbclient/src/write/write_8.c index da2ae12e77..b660e76e97 100644 --- a/testsuite/libsmbclient/src/write/write_8.c +++ b/testsuite/libsmbclient/src/write/write_8.c @@ -33,7 +33,7 @@ int main(int argc, char** argv) int fd = 0; char* message = "Testing"; - bzero(g_workgroup,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); if ( argc == 4 ) { diff --git a/testsuite/libsmbclient/src/write/write_9.c b/testsuite/libsmbclient/src/write/write_9.c index 606bf642dd..52e9f186e5 100644 --- a/testsuite/libsmbclient/src/write/write_9.c +++ b/testsuite/libsmbclient/src/write/write_9.c @@ -35,8 +35,8 @@ int main(int argc, char** argv) char url[MAX_BUFF_SIZE]; char* message = NULL; - bzero(g_workgroup,MAX_BUFF_SIZE); - bzero(url,MAX_BUFF_SIZE); + memset(g_workgroup, '\0', MAX_BUFF_SIZE); + memset(url, '\0', MAX_BUFF_SIZE); if ( argc == 5 ) { -- cgit