From 0a63d26bf78ea89fcb38dd386a1df9b5ae07db45 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 7 Mar 2015 13:33:35 +0100 Subject: [PATCH] Fix double semicolons. --- editor/display.c++ | 2 +- libc/include/msr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/display.c++ b/editor/display.c++ index cafd7c95..da0a07d6 100644 --- a/editor/display.c++ +++ b/editor/display.c++ @@ -261,7 +261,7 @@ void render_editor(struct editor* editor, struct terminal_state* state) if ( editor->mode == MODE_SAVE ) msg = "File Name to Write: "; if ( editor->mode == MODE_LOAD ) - msg = "File Name to Read: ";; + msg = "File Name to Read: "; if ( editor->mode == MODE_ASK_QUIT ) msg = "Exit without saving changes? (Y/N): "; if ( editor->mode == MODE_GOTO_LINE ) diff --git a/libc/include/msr.h b/libc/include/msr.h index 111263a9..386d13d0 100644 --- a/libc/include/msr.h +++ b/libc/include/msr.h @@ -50,7 +50,7 @@ __attribute__((unused)) static __inline uint64_t wrmsr_instruction(uint32_t msrid, uint64_t value) { uint32_t low = value >> 0 & 0xFFFFFFFF; - uint32_t high = value >> 32 & 0xFFFFFFFF;; + uint32_t high = value >> 32 & 0xFFFFFFFF; __asm__ __volatile__ ("wrmsr" : : "a"(low), "d"(high), "c"(msrid) : "memory"); return value; }