mirror of
https://github.com/fluencelabs/musl
synced 2025-06-13 23:11:51 +00:00
cleanup various minor issues reported by nsz
the changes to syscall_ret are mostly no-ops in the generated code, just cleanup of type issues and removal of some implementation-defined behavior. the one exception is the change in the comparison value, which is fixed so that 0xf...f000 (which in principle could be a valid return value for mmap, although probably never in reality) is not treated as an error return.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <langinfo.h>
|
||||
#include "atomic.h"
|
||||
|
||||
const char *__langinfo(nl_item);
|
||||
|
||||
@ -21,7 +22,7 @@ char *__asctime(const struct tm *tm, char *buf)
|
||||
* application developers that they may not be so lucky
|
||||
* on other implementations (e.g. stack smashing..).
|
||||
*/
|
||||
*(volatile int*)0 = 0;
|
||||
a_crash();
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user