diff options
author | asynts <asynts@gmail.com> | 2020-10-04 17:42:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-04 19:18:32 +0200 |
commit | 59e7ffa86d5be4dca7ec28b0a18a386dbb063a9f (patch) | |
tree | 0610e9454f4c850e1eaff9e4aafc241820f891d1 /Libraries/LibC | |
parent | 4cf3a1eb41dc74dc97b48e60aa579f9c9135c802 (diff) | |
download | serenity-59e7ffa86d5be4dca7ec28b0a18a386dbb063a9f.zip |
AK: Make the return type of dbgputstr consistent.
Diffstat (limited to 'Libraries/LibC')
-rw-r--r-- | Libraries/LibC/stdio.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibC/stdio.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibC/stdio.cpp b/Libraries/LibC/stdio.cpp index 02f64d4165..a281498004 100644 --- a/Libraries/LibC/stdio.cpp +++ b/Libraries/LibC/stdio.cpp @@ -1044,7 +1044,7 @@ void dbgputch(char ch) syscall(SC_dbgputch, ch); } -ssize_t dbgputstr(const char* characters, ssize_t length) +int dbgputstr(const char* characters, ssize_t length) { int rc = syscall(SC_dbgputstr, characters, length); __RETURN_WITH_ERRNO(rc, rc, -1); diff --git a/Libraries/LibC/stdio.h b/Libraries/LibC/stdio.h index 498c8f82b7..b754f44fc8 100644 --- a/Libraries/LibC/stdio.h +++ b/Libraries/LibC/stdio.h @@ -93,7 +93,7 @@ int fprintf(FILE*, const char* fmt, ...); int printf(const char* fmt, ...); int dbgprintf(const char* fmt, ...); void dbgputch(char); -ssize_t dbgputstr(const char*, ssize_t); +int dbgputstr(const char*, ssize_t); int sprintf(char* buffer, const char* fmt, ...); int snprintf(char* buffer, size_t, const char* fmt, ...); int putchar(int ch); |