diff options
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/error.c | 2 | ||||
-rw-r--r-- | libc/misc/swapon.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/libc/misc/error.c b/libc/misc/error.c index e3f8e0f00..5bd4cf9c4 100644 --- a/libc/misc/error.c +++ b/libc/misc/error.c @@ -167,7 +167,7 @@ error_tail (int status, int errnum, const char *message, va_list args) if (res != len) break; - if (__builtin_expect (len >= SIZE_MAX / 2, 0)) + if (__builtin_expect (len >= SIZE_MAX / sizeof (wchar_t) / 2, 0)) { /* This really should not happen if everything is fine. */ res = (size_t) -1; diff --git a/libc/misc/swapon.c b/libc/misc/swapon.c index 61933b8bb..0e587d473 100644 --- a/libc/misc/swapon.c +++ b/libc/misc/swapon.c @@ -22,8 +22,7 @@ /* Make the block special device PATH available to the system for swapping. This call is restricted to the super-user. */ int -swapon (path) - const char *path; +swapon (const char *path, int flags) { __set_errno (ENOSYS); return -1; |