aboutsummaryrefslogtreecommitdiff
path: root/tests/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mem.c')
-rw-r--r--tests/mem.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/mem.c b/tests/mem.c
index 2083949..025446d 100644
--- a/tests/mem.c
+++ b/tests/mem.c
@@ -29,13 +29,13 @@
* you really want to actually use the memory. Do you trust your OOM though?
*/
int main(void){
- void *ptr = NULL;
- unsigned long mb = 5;
- for (;;mb += 5) {
- fprintf(stderr, "%lu MB\n", mb);
- if ((ptr = realloc(ptr, mb * 1000000)) == NULL) {
- raise(SIGABRT);
- }
- /* memset(ptr, 0, mb * 1000000); */
- }
+ void *ptr = NULL;
+ unsigned long mb = 5;
+ for (;;mb += 5) {
+ fprintf(stderr, "%lu MB\n", mb);
+ if ((ptr = realloc(ptr, mb * 1000000)) == NULL) {
+ raise(SIGABRT);
+ }
+ /* memset(ptr, 0, mb * 1000000); */
+ }
}