summaryrefslogtreecommitdiff
path: root/testsuite/libsmbclient/src/lseekdir
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-02-29 16:05:53 +1100
committerAmitay Isaacs <amitay@samba.org>2012-02-29 10:39:09 +0100
commitcac9bfe475790c8d682e30fd2648099dc3e72fa5 (patch)
tree5fd4f38b47763e58c6b7fc674b2b4f689233b799 /testsuite/libsmbclient/src/lseekdir
parentf981257240976bbc88251248ad9a7f56277e22a8 (diff)
downloadsamba-cac9bfe475790c8d682e30fd2648099dc3e72fa5.tar.gz
samba-cac9bfe475790c8d682e30fd2648099dc3e72fa5.tar.bz2
samba-cac9bfe475790c8d682e30fd2648099dc3e72fa5.zip
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 <amitay@samba.org> Autobuild-Date: Wed Feb 29 10:39:10 CET 2012 on sn-devel-104
Diffstat (limited to 'testsuite/libsmbclient/src/lseekdir')
-rw-r--r--testsuite/libsmbclient/src/lseekdir/lseekdir_1.c10
-rw-r--r--testsuite/libsmbclient/src/lseekdir/lseekdir_2.c10
-rw-r--r--testsuite/libsmbclient/src/lseekdir/lseekdir_3.c4
-rw-r--r--testsuite/libsmbclient/src/lseekdir/lseekdir_4.c4
-rw-r--r--testsuite/libsmbclient/src/lseekdir/lseekdir_5.c10
-rw-r--r--testsuite/libsmbclient/src/lseekdir/lseekdir_6.c10
6 files changed, 24 insertions, 24 deletions
diff --git a/testsuite/libsmbclient/src/lseekdir/lseekdir_1.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_1.c
index 0610c21757..decf347159 100644
--- a/testsuite/libsmbclient/src/lseekdir/lseekdir_1.c
+++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_1.c
@@ -42,11 +42,11 @@ int main(int argc, char** argv)
char file_url[MAX_BUFF_SIZE];
char dir_url[MAX_BUFF_SIZE];
- bzero(g_workgroup,MAX_BUFF_SIZE);
- bzero(url,MAX_BUFF_SIZE);
- bzero(file_url,MAX_BUFF_SIZE);
- bzero(dir_url,MAX_BUFF_SIZE);
- bzero(buff,MAX_BUFF_SIZE);
+ memset(g_workgroup, '\0', MAX_BUFF_SIZE);
+ memset(url, '\0', MAX_BUFF_SIZE);
+ memset(file_url, '\0', MAX_BUFF_SIZE);
+ memset(dir_url, '\0', MAX_BUFF_SIZE);
+ memset(buff, '\0', MAX_BUFF_SIZE);
if ( argc == 6 )
{
diff --git a/testsuite/libsmbclient/src/lseekdir/lseekdir_2.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_2.c
index 8cfae82356..2c3f448530 100644
--- a/testsuite/libsmbclient/src/lseekdir/lseekdir_2.c
+++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_2.c
@@ -42,11 +42,11 @@ int main(int argc, char** argv)
char file_url[MAX_BUFF_SIZE];
char dir_url[MAX_BUFF_SIZE];
- bzero(g_workgroup,MAX_BUFF_SIZE);
- bzero(url,MAX_BUFF_SIZE);
- bzero(file_url,MAX_BUFF_SIZE);
- bzero(dir_url,MAX_BUFF_SIZE);
- bzero(buff,MAX_BUFF_SIZE);
+ memset(g_workgroup, '\0', MAX_BUFF_SIZE);
+ memset(url, '\0', MAX_BUFF_SIZE);
+ memset(file_url, '\0', MAX_BUFF_SIZE);
+ memset(dir_url, '\0', MAX_BUFF_SIZE);
+ memset(buff, '\0', MAX_BUFF_SIZE);
if ( argc == 6 )
{
diff --git a/testsuite/libsmbclient/src/lseekdir/lseekdir_3.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_3.c
index a133bb83a8..86cadc76a8 100644
--- a/testsuite/libsmbclient/src/lseekdir/lseekdir_3.c
+++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_3.c
@@ -34,8 +34,8 @@ int main(int argc, char** argv)
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/lseekdir/lseekdir_4.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_4.c
index 8a1745d659..1a67b2071b 100644
--- a/testsuite/libsmbclient/src/lseekdir/lseekdir_4.c
+++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_4.c
@@ -34,8 +34,8 @@ int main(int argc, char** argv)
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/lseekdir/lseekdir_5.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_5.c
index 12523645c6..a6bfd01cc9 100644
--- a/testsuite/libsmbclient/src/lseekdir/lseekdir_5.c
+++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_5.c
@@ -47,11 +47,11 @@ int main(int argc, char** argv)
char dir_url[MAX_BUFF_SIZE];
char dirbuff[MAX_BUFF_SIZE];
- bzero(g_workgroup,MAX_BUFF_SIZE);
- bzero(url,MAX_BUFF_SIZE);
- bzero(file_url,MAX_BUFF_SIZE);
- bzero(dir_url,MAX_BUFF_SIZE);
- bzero(buff,MAX_BUFF_SIZE);
+ memset(g_workgroup, '\0', MAX_BUFF_SIZE);
+ memset(url, '\0', MAX_BUFF_SIZE);
+ memset(file_url, '\0', MAX_BUFF_SIZE);
+ memset(dir_url, '\0', MAX_BUFF_SIZE);
+ memset(buff, '\0', MAX_BUFF_SIZE);
if ( argc == 6 )
{
diff --git a/testsuite/libsmbclient/src/lseekdir/lseekdir_6.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_6.c
index 94c5997c94..50501d46e3 100644
--- a/testsuite/libsmbclient/src/lseekdir/lseekdir_6.c
+++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_6.c
@@ -48,11 +48,11 @@ int main(int argc, char** argv)
char dir_url[MAX_BUFF_SIZE];
char dirbuff[MAX_BUFF_SIZE];
- bzero(g_workgroup,MAX_BUFF_SIZE);
- bzero(url,MAX_BUFF_SIZE);
- bzero(file_url,MAX_BUFF_SIZE);
- bzero(dir_url,MAX_BUFF_SIZE);
- bzero(buff,MAX_BUFF_SIZE);
+ memset(g_workgroup, '\0', MAX_BUFF_SIZE);
+ memset(url, '\0', MAX_BUFF_SIZE);
+ memset(file_url, '\0', MAX_BUFF_SIZE);
+ memset(dir_url, '\0', MAX_BUFF_SIZE);
+ memset(buff, '\0', MAX_BUFF_SIZE);
if ( argc == 6 )
{