Fix Android compilation warnings
This commit is contained in:
parent
be4eb53a26
commit
fa67ffb462
|
@ -34,6 +34,7 @@
|
|||
#include <asm/ioctls.h>
|
||||
#include <linux/usbdevice_fs.h>
|
||||
#include <asm/byteorder.h>
|
||||
#include <unistd.h>
|
||||
#ifndef BOTHER
|
||||
#include <termios.h>
|
||||
#endif
|
||||
|
@ -66,7 +67,7 @@ void getFriendlyName(const char* productFile, char* friendlyName)
|
|||
if (input)
|
||||
{
|
||||
char ch = getc(input);
|
||||
while ((ch != '\n') && (ch != EOF))
|
||||
while ((ch != '\n') && ((int)ch != EOF))
|
||||
{
|
||||
friendlyName[friendlyNameLength++] = ch;
|
||||
ch = getc(input);
|
||||
|
|
|
@ -39,4 +39,6 @@ void getFriendlyName(const char* productFile, char* friendlyName);
|
|||
unsigned int getBaudRateCode(int baudRate);
|
||||
void setBaudRate(int portFD, int baudRate);
|
||||
|
||||
extern int ioctl(int __fd, int __request, ...);
|
||||
|
||||
#endif // #ifndef __ANDROID_HELPER_FUNCTIONS_HEADER_H__
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
APP_ABI := all
|
||||
APP_ABI := all
|
||||
APP_PLATFORM := android-14
|
||||
|
|
Loading…
Reference in New Issue