Project

General

Profile

Actions

Bug #1448

closed

Rand doesn't have arguments specified in a header

Added by Roman L. over 8 years ago. Updated over 8 years ago.

Status:
Completed
Priority:
Normal
Assignee:
Category:
libcrystax
Target version:
Start date:
07/20/2016
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
arm64
Host OS:
Linux
Toolchain:
gcc-6
Android version:
5.1 (android-22)
CrystaX NDK Version:

Description

crystax/sys/stdlib.h header has

int  rand();

instead of

int  rand(void);

that results in that rand function can be redefined with any other arguments list. Finally this leads to a failed configuration of libcurl ("compiler does not halt on function prototype mismatch."), as it uses rand function for a check.

Actions

Also available in: Atom PDF