warning: passing argument 2 of 'get_reboot_reason' from incompatible pointer type
这类警告是函数类型 有差异,需要强制转换。
如:
iconv(cd,
&inbuf, ,&inlen, &outbuf, &outlen);
改为:
改为:
iconv(cd,
(const char **)&inbuf, ,&inlen, &outbuf, &outlen);