diff options
| author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-15 19:38:09 +0100 | 
|---|---|---|
| committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-16 21:15:08 +0100 | 
| commit | fe80f7b35fc168e0d1bb142a52073c6f0e1e9ef8 (patch) | |
| tree | 3973294c8465adab8f74d9f004a4dbae638f6b97 /src/inlines.c | |
| parent | 6403a37913828f69de52ebabf33499ced848641d (diff) | |
Cast void pointers explicitly
Needed for C++ compatibility.
Diffstat (limited to 'src/inlines.c')
| -rw-r--r-- | src/inlines.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inlines.c b/src/inlines.c index 677861f..70525d6 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -43,7 +43,7 @@ static unsigned char *bufdup(const unsigned char *buf)  	if (buf) {  		int len = strlen((char *)buf); -		new = calloc(len + 1, sizeof(*new)); +		new = (unsigned char *)calloc(len + 1, sizeof(*new));  		if(new != NULL) {  			memcpy(new, buf, len + 1);  		}  | 
