1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

Lots of minor compat stuff while seeing if bash would build.

We're quite far from bash building, but we'll get there eventually!
This commit is contained in:
Andreas Kling 2018-11-05 16:40:48 +01:00
parent e4611248c4
commit e76312ab63
21 changed files with 172 additions and 38 deletions

View file

@ -189,7 +189,7 @@ static int vsscanf(const char *buf, const char *s, va_list ap)
for (tc = s; isdigit(*s); s++);
strncpy (tmp, tc, s - tc);
tmp[s - tc] = '\0';
atob ((dword*)&width, tmp, 10);
atob ((uint32_t*)&width, tmp, 10);
s--;
}
}
@ -232,7 +232,7 @@ static int vsscanf(const char *buf, const char *s, va_list ap)
tmp[width] = '\0';
buf += width;
if (!noassign)
atob(va_arg(ap, dword*), tmp, base);
atob(va_arg(ap, uint32_t*), tmp, base);
}
if (!noassign)
++count;