Fix typo in soc_ioctl.c

This commit is contained in:
fincs 2014-11-21 23:51:06 +01:00
parent 4219a23ebd
commit b0c29ba658
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
// Functions for allocating/deallocating memory from linear heap
void* linearAlloc(size_t size); // returns a 16-byte aligned address
void* linearMemAlign(size_t size, size_t alignment); // WARNING: wastes 'alignment' bytes
void* linearMemAlign(size_t size, size_t alignment);
void* linearRealloc(void* mem, size_t size); // not implemented yet
void linearFree(void* mem);
u32 linearSpaceFree(); // get free linear space in bytes

View File

@ -23,7 +23,7 @@ int ioctl(int fd, int request, ...)
flags = fcntl(fd, F_GETFL, 0);
if(flags == -1) {
errno = SOCU_GetError();
errno = SOC_GetErrno();
return -1;
}
@ -31,7 +31,7 @@ int ioctl(int fd, int request, ...)
else ret = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
if(ret != 0)
errno = SOCU_GetError();
errno = SOC_GetErrno();
break;