diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-02-29 16:05:53 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2012-02-29 10:39:09 +0100 |
commit | cac9bfe475790c8d682e30fd2648099dc3e72fa5 (patch) | |
tree | 5fd4f38b47763e58c6b7fc674b2b4f689233b799 /testsuite/libsmbclient/src/close | |
parent | f981257240976bbc88251248ad9a7f56277e22a8 (diff) | |
download | samba-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/close')
-rw-r--r-- | testsuite/libsmbclient/src/close/close_1.c | 4 | ||||
-rw-r--r-- | testsuite/libsmbclient/src/close/close_2.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/libsmbclient/src/close/close_1.c b/testsuite/libsmbclient/src/close/close_1.c index 182964c9d2..6b60e59dba 100644 --- a/testsuite/libsmbclient/src/close/close_1.c +++ b/testsuite/libsmbclient/src/close/close_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/close/close_2.c b/testsuite/libsmbclient/src/close/close_2.c index 41824e9d0f..bd31ab11fd 100644 --- a/testsuite/libsmbclient/src/close/close_2.c +++ b/testsuite/libsmbclient/src/close/close_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 ) { |