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/print_file/print_file_1.c | 4 ++-- testsuite/libsmbclient/src/print_file/print_file_2.c | 4 ++-- testsuite/libsmbclient/src/print_file/print_file_3.c | 4 ++-- testsuite/libsmbclient/src/print_file/print_file_4.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'testsuite/libsmbclient/src/print_file') diff --git a/testsuite/libsmbclient/src/print_file/print_file_1.c b/testsuite/libsmbclient/src/print_file/print_file_1.c index 7722c83453..9fb6d4e0da 100644 --- a/testsuite/libsmbclient/src/print_file/print_file_1.c +++ b/testsuite/libsmbclient/src/print_file/print_file_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 == 7 ) { diff --git a/testsuite/libsmbclient/src/print_file/print_file_2.c b/testsuite/libsmbclient/src/print_file/print_file_2.c index 29336099e8..9b4e41a65b 100644 --- a/testsuite/libsmbclient/src/print_file/print_file_2.c +++ b/testsuite/libsmbclient/src/print_file/print_file_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 == 7 ) { diff --git a/testsuite/libsmbclient/src/print_file/print_file_3.c b/testsuite/libsmbclient/src/print_file/print_file_3.c index fcd1f51e39..41de01c1cd 100644 --- a/testsuite/libsmbclient/src/print_file/print_file_3.c +++ b/testsuite/libsmbclient/src/print_file/print_file_3.c @@ -32,8 +32,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 == 6 ) { diff --git a/testsuite/libsmbclient/src/print_file/print_file_4.c b/testsuite/libsmbclient/src/print_file/print_file_4.c index 196697e455..568c49f348 100644 --- a/testsuite/libsmbclient/src/print_file/print_file_4.c +++ b/testsuite/libsmbclient/src/print_file/print_file_4.c @@ -32,8 +32,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 == 6 ) { -- cgit