Project

General

Profile

Bug #1448

Rand doesn't have arguments specified in a header

Added by Roman Lebedev almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
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 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.

History

#1 Updated by Dmitry Moskalchuk almost 3 years ago

  • Description updated (diff)
  • Assignee set to Dmitry Moskalchuk

#2 Updated by Dmitry Moskalchuk almost 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF