diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-01-24 14:53:43 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-01-24 14:53:43 -0900 |
| commit | 631957f1e9cccf64b281cb568aaac92d3d1517c0 (patch) | |
| tree | 809af7ac107e61a279e9b20f62745575c8e45ab4 /tests | |
| parent | 0e2397e10638610542e0f058a0334ae2cf0beac8 (diff) | |
| download | tinyrad-631957f1e9cccf64b281cb568aaac92d3d1517c0.tar.gz tinyrad-631957f1e9cccf64b281cb568aaac92d3d1517c0.tar.bz2 tinyrad-631957f1e9cccf64b281cb568aaac92d3d1517c0.tar.xz tinyrad-631957f1e9cccf64b281cb568aaac92d3d1517c0.zip | |
tests: replacing bzero() with memset()
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-array-queue.c | 2 | ||||
| -rw-r--r-- | tests/test-array-sorted.c | 4 | ||||
| -rw-r--r-- | tests/test-array-stack.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-array-queue.c b/tests/test-array-queue.c index fd5c968..909e9ed 100644 --- a/tests/test-array-queue.c +++ b/tests/test-array-queue.c | |||
| @@ -212,7 +212,7 @@ int main( int argc, char * argv[] ) | |||
| 212 | 212 | ||
| 213 | // initialize test data | 213 | // initialize test data |
| 214 | our_verbose(opts, "initializing test data ..."); | 214 | our_verbose(opts, "initializing test data ..."); |
| 215 | bzero(data, sizeof(data)); | 215 | memset(data, 0, sizeof(data)); |
| 216 | for(len = 0; ((test_strs[len])); len++); | 216 | for(len = 0; ((test_strs[len])); len++); |
| 217 | for(pos = 0; (pos < MY_LIST_LEN); pos++) | 217 | for(pos = 0; (pos < MY_LIST_LEN); pos++) |
| 218 | { | 218 | { |
diff --git a/tests/test-array-sorted.c b/tests/test-array-sorted.c index 4401eee..d41cdcb 100644 --- a/tests/test-array-sorted.c +++ b/tests/test-array-sorted.c | |||
| @@ -277,8 +277,8 @@ int main( int argc, char * argv[] ) | |||
| 277 | 277 | ||
| 278 | // initialize test data | 278 | // initialize test data |
| 279 | our_verbose(opts, "initializing test data ..."); | 279 | our_verbose(opts, "initializing test data ..."); |
| 280 | bzero(data, sizeof(data)); | 280 | memset(data, 0, sizeof(data)); |
| 281 | bzero(test, sizeof(test)); | 281 | memset(test, 0, sizeof(test)); |
| 282 | for(len = 0; ((test_strs[len])); len++); | 282 | for(len = 0; ((test_strs[len])); len++); |
| 283 | for(pos = 0; (pos < MY_LIST_LEN); pos++) | 283 | for(pos = 0; (pos < MY_LIST_LEN); pos++) |
| 284 | { | 284 | { |
diff --git a/tests/test-array-stack.c b/tests/test-array-stack.c index ed8f04a..53624bd 100644 --- a/tests/test-array-stack.c +++ b/tests/test-array-stack.c | |||
| @@ -212,7 +212,7 @@ int main( int argc, char * argv[] ) | |||
| 212 | 212 | ||
| 213 | // initialize test data | 213 | // initialize test data |
| 214 | our_verbose(opts, "initializing test data ..."); | 214 | our_verbose(opts, "initializing test data ..."); |
| 215 | bzero(data, sizeof(data)); | 215 | memset(data, 0, sizeof(data)); |
| 216 | for(len = 0; ((test_strs[len])); len++); | 216 | for(len = 0; ((test_strs[len])); len++); |
| 217 | for(pos = 0; (pos < MY_LIST_LEN); pos++) | 217 | for(pos = 0; (pos < MY_LIST_LEN); pos++) |
| 218 | { | 218 | { |
