projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use inline syscalls for powerpc (32-bit)
[musl]
/
src
/
multibyte
/
mbsinit.c
diff --git
a/src/multibyte/mbsinit.c
b/src/multibyte/mbsinit.c
index
d307e5a
..
c608194
100644
(file)
--- a/
src/multibyte/mbsinit.c
+++ b/
src/multibyte/mbsinit.c
@@
-1,17
+1,6
@@
-/*
- * This code was written by Rich Felker in 2010; no copyright is claimed.
- * This code is in the public domain. Attribution is appreciated but
- * unnecessary.
- */
-
-#include <stdlib.h>
-#include <inttypes.h>
#include <wchar.h>
#include <wchar.h>
-#include <errno.h>
-
-#include "internal.h"
int mbsinit(const mbstate_t *st)
{
int mbsinit(const mbstate_t *st)
{
- return !*(unsigned *)st;
+ return !
st || !
*(unsigned *)st;
}
}