-/* Copyright (c) 2010, 2014-2016. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
{
char garbage[1024];
auto int dummy;
- for (int i = 0; i < 1024; i++)
+ int i;
+ for (i = 0; i < 1024; i++)
garbage[i] = 'X';
handler_addr = (char *) &dummy;
swapcontext(&uc_handler, &uc_main);
char *skbuf = (char *) malloc(sksize * 2 + 2 * sizeof(union alltypes));
if (skbuf == NULL)
exit(1);
- for (int i = 0; i < sksize * 2 + 2 * sizeof(union alltypes); i++)
+ int i;
+ for (i = 0; i < sksize * 2 + 2 * sizeof(union alltypes); i++)
skbuf[i] = 'A';
char *skaddr = skbuf + sizeof(union alltypes);
if (handler_addr < skaddr + sksize) {
/* stack was placed into lower area */
if (*(skaddr + sksize) != 'A')
- printf("(skaddr)+(sksize)-%d;(sksize)-%d", sizeof(union alltypes), sizeof(union alltypes));
+ printf("(skaddr)+(sksize)-%zu;(sksize)-%zu", sizeof(union alltypes), sizeof(union alltypes));
else
printf("(skaddr)+(sksize);(sksize)");
} else {
/* stack was placed into higher area */
if (*(skaddr + sksize * 2) != 'A')
- printf("(skaddr);(sksize)-%d", sizeof(union alltypes));
+ printf("(skaddr);(sksize)-%zu", sizeof(union alltypes));
else
printf("(skaddr);(sksize)");
}