TLeconte / acarsdec

ACARS SDR decoder
336 stars 90 forks source link

index() is deprecated POSIX function #27

Closed hhrhhr closed 6 years ago

hhrhhr commented 6 years ago

https://github.com/TLeconte/acarsdec/blob/d11c58643ce4815fedad7f243de8b225a5ad7f00/label.c#L150-L156

from Open Group Base Specifications Issue 6:

The index() function shall be equivalent to strchr()... The strchr() function is preferred over this function. For maximum portability, it is recommended to replace the function call to index() as follows: #define index(a,b) strchr((a),(b))

TLeconte commented 6 years ago

fixed