Browse Source

tests/strerror_override.c: fix compilation error

I got this on Mac OS X at least.
Not sure if it shows up in other envs

error:
```
strerror_override.c:53:13: error: incompatible redeclaration of library function 'strerror' [-Werror,-Wincompatible-library-redeclaration]
const char *strerror(int errno_in)
```

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
tags/json-c-0.13-20171207
Alexandru Ardelean 9 years ago
parent
commit
2fbdee19da
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/strerror_override.c

+ 1
- 1
tests/strerror_override.c View File

@@ -50,7 +50,7 @@ static struct {

#define PREFIX "ERRNO="
static char errno_buf[128] = PREFIX;
const char *strerror(int errno_in)
char *strerror(int errno_in)
{
int start_idx;
char digbuf[20];


Loading…
Cancel
Save