diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2017-01-04 22:08:32 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2017-01-04 22:08:32 +0000 |
commit | 801d42d9472674dee71fbfd4bdd7104fe4640000 (patch) | |
tree | ac4f3bee11f49780996053beccec4754e02051ec /tests/tests.h | |
parent | 23287f11fe9e41ed47de2bdaa404ef6f20479d02 (diff) | |
download | strace-801d42d9472674dee71fbfd4bdd7104fe4640000.tar.gz |
tests: change the type of fill_memory{,_ex} first argument to void *
As these functions behave like memset, it's more convenient to have
the first argument of type void * like memset.
* tests/fill_memory.c (fill_memory, fill_memory_ex): Change the type
of first argument from "char *" to "void *".
* tests/tests.h (fill_memory, fill_memory_ex): Likewise.
Diffstat (limited to 'tests/tests.h')
-rw-r--r-- | tests/tests.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.h b/tests/tests.h index 202b22242..d4294de9a 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -73,10 +73,10 @@ void *tail_memdup(const void *, const size_t) * values starting with start and resetting every period) in order to catch * sign, byte order and/or alignment errors. */ -void fill_memory_ex(char *ptr, size_t size, unsigned char start, +void fill_memory_ex(void *ptr, size_t size, unsigned char start, unsigned char period); /* Shortcut for fill_memory_ex(ptr, size, 0x80, 0x80) */ -void fill_memory(char *ptr, size_t size); +void fill_memory(void *ptr, size_t size); /* Close stdin, move stdout to a non-standard descriptor, and print. */ void tprintf(const char *, ...) |