diff options
author | Dan McGee <dpmcgee@gmail.com> | 2012-02-14 09:57:55 -0600 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-02-14 18:19:43 +0200 |
commit | 3f303d6014a53d2250aeb8c86aa5038f98f2e83c (patch) | |
tree | 59aaba327ac36dba4b0367cced9ee577a46e37ca /server/tests/test_empty_success.c | |
parent | 08c514ee853444ab158aa461b07b1921bb931a29 (diff) | |
download | spice-3f303d6014a53d2250aeb8c86aa5038f98f2e83c.tar.gz spice-3f303d6014a53d2250aeb8c86aa5038f98f2e83c.tar.xz spice-3f303d6014a53d2250aeb8c86aa5038f98f2e83c.zip |
Remove all usages of bzero()
As recommended by modern C practice, we should just be using memset().
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Diffstat (limited to 'server/tests/test_empty_success.c')
-rw-r--r-- | server/tests/test_empty_success.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/test_empty_success.c b/server/tests/test_empty_success.c index 435efbf6..ccabe6b4 100644 --- a/server/tests/test_empty_success.c +++ b/server/tests/test_empty_success.c @@ -1,6 +1,6 @@ #include <config.h> #include <stdlib.h> -#include <strings.h> +#include <string.h> #include <spice.h> @@ -43,7 +43,7 @@ int main(void) SpiceServer *server = spice_server_new(); SpiceCoreInterface core; - bzero(&core, sizeof(core)); + memset(&core, 0, sizeof(core)); core.base.major_version = SPICE_INTERFACE_CORE_MAJOR; core.timer_add = timer_add; core.timer_start = timer_start; |