Skip to content

Commit

Permalink
This addresses issue #126.
Browse files Browse the repository at this point in the history
Where believed necessary size_t replaces unsigned int
  • Loading branch information
Roger-Shepherd authored and PaoloS02 committed Apr 9, 2021
1 parent 3228a96 commit b2cb4ba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions support/dummy-libc.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abort (void)
void *
memcpy (void *dest __attribute__ ((unused)),
const void *src __attribute__ ((unused)),
unsigned int n __attribute__ ((unused)))
size_t n __attribute__ ((unused)))
{
return 0;
}
Expand All @@ -52,7 +52,7 @@ memcpy (void *dest __attribute__ ((unused)),
void *
memmove (void *dest __attribute__ ((unused)),
const void *src __attribute__ ((unused)),
unsigned int n __attribute__ ((unused)))
size_t n __attribute__ ((unused)))
{
return 0;
}
Expand All @@ -61,15 +61,15 @@ memmove (void *dest __attribute__ ((unused)),
void *
memset (void *s __attribute__ ((unused)),
int c __attribute__ ((unused)),
unsigned int n __attribute__ ((unused)))
size_t n __attribute__ ((unused)))
{
return 0;
}

int
memcmp (const void *s1 __attribute__ ((unused)),
const void *s2 __attribute__ ((unused)),
unsigned int n __attribute__ ((unused)))
size_t n __attribute__ ((unused)))
{
return 0;
}
Expand All @@ -89,15 +89,15 @@ srand (unsigned int seed __attribute__ ((unused)))


void *
calloc (unsigned int nmemb __attribute__ ((unused)),
unsigned int size __attribute__ ((unused)))
calloc (size_t nmemb __attribute__ ((unused)),
size_t size __attribute__ ((unused)))
{
return 0;
}


void *
malloc (unsigned int size __attribute__ ((unused)))
malloc (size_t size __attribute__ ((unused)))
{
return 0;
}
Expand All @@ -119,7 +119,7 @@ __assert_func (const char *arg1 __attribute__ ((unused)),
;
}

unsigned int
size_t
strlen (const char *s __attribute__ ((unused)))
{
return 0;
Expand Down

0 comments on commit b2cb4ba

Please sign in to comment.