Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-10

__caddr_t type in packages/libc/src/typesh.inc

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hilton Williams

Hi

It looks like the __caddr_t type in packages/libc/src/typesh.inc is declared incorrectly.

In C, it is declared as "typedef char *__caddr_t;", but in FPC, it is declared as char, not PChar.

This is most obvious when using the ifc_ifcu.ifcu_buf field of the ifconf structure in nifh.inc.

Am I reading it wrong? Can someone confirm this is a bug?

Regards
Hilton Williams

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Reply by email