mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Fix some issues and do some code cleanup
This commit is contained in:
parent
1f229e4efc
commit
312ed5c67c
72 changed files with 880 additions and 982 deletions
|
@ -48,7 +48,7 @@ static inline textwindows noasan int NtGetBuildNumber(void) {
|
|||
* @return 0 on success, or -1 w/ errno
|
||||
*/
|
||||
int uname(struct utsname *lool) {
|
||||
int rc, v;
|
||||
int rc;
|
||||
char *out, *p;
|
||||
size_t i, j, len;
|
||||
char tmp[sizeof(struct utsname)];
|
||||
|
@ -87,7 +87,6 @@ int uname(struct utsname *lool) {
|
|||
rc = enosys();
|
||||
}
|
||||
} else {
|
||||
v = NtGetVersion();
|
||||
p = lool->release;
|
||||
p = FormatUint32(p, NtGetMajorVersion()), *p++ = '.';
|
||||
p = FormatUint32(p, NtGetMinorVersion()), *p++ = '-';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue