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/unlink/unlink_1.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_10.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_11.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_12.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_2.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_3.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_4.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_5.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_6.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_7.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_8.c | 4 ++-- testsuite/libsmbclient/src/unlink/unlink_9.c | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) (limited to 'testsuite/libsmbclient/src/unlink') diff --git a/testsuite/libsmbclient/src/unlink/unlink_1.c b/testsuite/libsmbclient/src/unlink/unlink_1.c index d1902eeeea..119f06b8cf 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_1.c +++ b/testsuite/libsmbclient/src/unlink/unlink_1.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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/unlink/unlink_10.c b/testsuite/libsmbclient/src/unlink/unlink_10.c index f70e687e77..b5c5200934 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_10.c +++ b/testsuite/libsmbclient/src/unlink/unlink_10.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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/unlink/unlink_11.c b/testsuite/libsmbclient/src/unlink/unlink_11.c index 5573131e90..dc9ee676c5 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_11.c +++ b/testsuite/libsmbclient/src/unlink/unlink_11.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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/unlink/unlink_12.c b/testsuite/libsmbclient/src/unlink/unlink_12.c index d53ac52364..3851dc75c9 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_12.c +++ b/testsuite/libsmbclient/src/unlink/unlink_12.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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/unlink/unlink_2.c b/testsuite/libsmbclient/src/unlink/unlink_2.c index 29bbbb1369..deeb89fd9c 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_2.c +++ b/testsuite/libsmbclient/src/unlink/unlink_2.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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/unlink/unlink_3.c b/testsuite/libsmbclient/src/unlink/unlink_3.c index 800823850d..b102b4310e 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_3.c +++ b/testsuite/libsmbclient/src/unlink/unlink_3.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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/unlink/unlink_4.c b/testsuite/libsmbclient/src/unlink/unlink_4.c index bd96afba34..cb100afcd4 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_4.c +++ b/testsuite/libsmbclient/src/unlink/unlink_4.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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 == 7 ) { diff --git a/testsuite/libsmbclient/src/unlink/unlink_5.c b/testsuite/libsmbclient/src/unlink/unlink_5.c index 63de3cb714..c3e89bddd6 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_5.c +++ b/testsuite/libsmbclient/src/unlink/unlink_5.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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/unlink/unlink_6.c b/testsuite/libsmbclient/src/unlink/unlink_6.c index 51bafc45ae..a048bdd6b0 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_6.c +++ b/testsuite/libsmbclient/src/unlink/unlink_6.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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/unlink/unlink_7.c b/testsuite/libsmbclient/src/unlink/unlink_7.c index 12419ef450..0e7c6f5581 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_7.c +++ b/testsuite/libsmbclient/src/unlink/unlink_7.c @@ -32,8 +32,8 @@ int main(int argc, char** argv) int fd = 0; char url[MAX_BUFF_SIZE]; - 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 == 7 ) { diff --git a/testsuite/libsmbclient/src/unlink/unlink_8.c b/testsuite/libsmbclient/src/unlink/unlink_8.c index 71c92c1f1f..112af5588a 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_8.c +++ b/testsuite/libsmbclient/src/unlink/unlink_8.c @@ -31,8 +31,8 @@ int main(int argc, char** argv) int err = -1; char url[MAX_BUFF_SIZE]; - 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/unlink/unlink_9.c b/testsuite/libsmbclient/src/unlink/unlink_9.c index 92789ac964..04af8d9f1e 100644 --- a/testsuite/libsmbclient/src/unlink/unlink_9.c +++ b/testsuite/libsmbclient/src/unlink/unlink_9.c @@ -31,8 +31,8 @@ int main(int argc, char** argv) int err = -1; char url[MAX_BUFF_SIZE]; - 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