From 3fd270f7a23dee9ddcbe6f014fc7cc55bf9a465f Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Fri, 7 Sep 2012 20:46:06 +0200 Subject: [PATCH] Remove trailing whitespace. --- libmaxsi/include/wchar.h | 2 +- sortix/fs/videofs.cpp | 2 +- sortix/include/sortix/kernel/textbuffer.h | 2 +- sortix/kernel.cpp | 2 +- sortix/kthread.cpp | 2 +- sortix/lfbtextbuffer.cpp | 2 +- sortix/x64/syscall.s | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libmaxsi/include/wchar.h b/libmaxsi/include/wchar.h index 1ac9f359..0e813569 100644 --- a/libmaxsi/include/wchar.h +++ b/libmaxsi/include/wchar.h @@ -49,7 +49,7 @@ __BEGIN_DECLS union { wint_t __wch; - char __wchb[4]; + char __wchb[4]; } __value; /* Value so far. */ } mbstate_t; #define __mbstate_t_defined 1 diff --git a/sortix/fs/videofs.cpp b/sortix/fs/videofs.cpp index 53b444fc..593ca15b 100644 --- a/sortix/fs/videofs.cpp +++ b/sortix/fs/videofs.cpp @@ -182,7 +182,7 @@ Device* MakeModes(int flags, mode_t /*mode*/) if ( !result ) { delete[] modesstr; } out: for ( size_t i = 0; i < nummodes; i++ ) { delete[] modes[i]; } - delete[] modes; + delete[] modes; return result; } diff --git a/sortix/include/sortix/kernel/textbuffer.h b/sortix/include/sortix/kernel/textbuffer.h index 884cc909..b8504453 100644 --- a/sortix/include/sortix/kernel/textbuffer.h +++ b/sortix/include/sortix/kernel/textbuffer.h @@ -90,7 +90,7 @@ private: size_t numused; bool deletedef; bool deletebuf; - + }; diff --git a/sortix/kernel.cpp b/sortix/kernel.cpp index 2802a31f..7bd0c359 100644 --- a/sortix/kernel.cpp +++ b/sortix/kernel.cpp @@ -339,7 +339,7 @@ static void BootThread(void* /*user*/) PanicF("Init returned with unexpected return code %i", status); } } - + static void InitThread(void* /*user*/) { // We are the init process's first thread. Let's load the init program from diff --git a/sortix/kthread.cpp b/sortix/kthread.cpp index 39a9d0e3..be5076b1 100644 --- a/sortix/kthread.cpp +++ b/sortix/kthread.cpp @@ -98,7 +98,7 @@ extern "C" unsigned long kthread_cond_wait_signal(kthread_cond_t* cond, cond->last = prev; } // Note that the thread still owns the mutex. - return 0; + return 0; } kthread_mutex_unlock(mutex); Scheduler::Yield(); diff --git a/sortix/lfbtextbuffer.cpp b/sortix/lfbtextbuffer.cpp index 173dda51..baed5d85 100644 --- a/sortix/lfbtextbuffer.cpp +++ b/sortix/lfbtextbuffer.cpp @@ -137,7 +137,7 @@ size_t LFBTextBuffer::Height() const return rows; } -bool LFBTextBuffer::UsablePosition(TextPos pos) const +bool LFBTextBuffer::UsablePosition(TextPos pos) const { return pos.x < columns && pos.y < rows; } diff --git a/sortix/x64/syscall.s b/sortix/x64/syscall.s index 4460c666..2ae2bf49 100644 --- a/sortix/x64/syscall.s +++ b/sortix/x64/syscall.s @@ -56,7 +56,7 @@ valid_syscall: # Oh how nice, user-space put the parameters in: rdi, rsi, rdx, rcx, r8, r9 # Call the system call. - callq *%rax + callq *%rax # Restore the previous permissions to data segment. popq %rbp