nfc-tools / libnfc

Platform independent Near Field Communication (NFC) library
http://nfc-tools.org
GNU Lesser General Public License v3.0
1.69k stars 441 forks source link

Fixed pointer type incompatibility warnings. #715

Closed ikspress closed 7 months ago

ikspress commented 7 months ago

Use _putenv_s() is a good idea which is faster than strcat() and putenv(). I tried my best to make compatible with setenv() and unsetenv() in glibc, but there still some tests failed. I think it's stupid to return -1 instead errno, Do you think it should return -1?

ikspress commented 7 months ago

Oh, I have a better implement. I close the PR and open another later.