Skip to content

Fixes for failing build with latest devkitA64 #670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions nx/source/runtime/util/inet_addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,7 @@ static int inet_pton4(const char *src, void *dst) {
* Paul Vixie, 1996.
*/
static const char *
inet_ntop6(src, dst, size)
const u_char *src;
char *dst;
size_t size;
{
inet_ntop6(const u_char *src, char *dst, size_t size) {
/*
* Note that int32_t and int16_t need only be "at least" large enough
* to contain a value of the specified size. On some systems, like
Expand Down Expand Up @@ -276,10 +272,7 @@ inet_ntop6(src, dst, size)
* Paul Vixie, 1996.
*/
static int
inet_pton6(src, dst)
const char *src;
u_char *dst;
{
inet_pton6(const char *src, u_char *dst) {
static const char xdigits_l[] = "0123456789abcdef",
xdigits_u[] = "0123456789ABCDEF";
u_char tmp[IN6ADDRSZ], *tp, *endp, *colonp;
Expand Down
2 changes: 1 addition & 1 deletion nx/source/services/btdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ bool btdrvCircularBufferFree(BtdrvCircularBuffer *c) {
if (read_offset == write_offset) return false;

u8 *data_ptr = &c->data[read_offset];
if (read_offset >= sizeof(c->data)) false;
if (read_offset >= sizeof(c->data)) return false;

u64 tmpsize = read_offset + 0x18;
if (tmpsize < sizeof(c->data)) tmpsize += *((u64*)&data_ptr[0x10]);
Expand Down