From 012bd2577975b902aa5ce0cdd0eb43ef57c948fb Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 21 May 2010 10:51:03 +0200 Subject: Fix spelling errors in comments and strings --- client/x11/main.cpp | 4 ++-- client/x11/named_pipe.cpp | 2 +- client/x11/platform.cpp | 6 +++--- client/x11/red_window.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'client/x11') diff --git a/client/x11/main.cpp b/client/x11/main.cpp index 3ee64285..1b9bb893 100644 --- a/client/x11/main.cpp +++ b/client/x11/main.cpp @@ -35,10 +35,10 @@ int main(int argc, char** argv) exit_val = Application::main(argc, argv, version_str); LOG_INFO("Spice client terminated (exitcode = %d)", exit_val); } catch (Exception& e) { - LOG_ERROR("unhandle exception: %s", e.what()); + LOG_ERROR("unhandled exception: %s", e.what()); exit_val = e.get_error_code(); } catch (std::exception& e) { - LOG_ERROR("unhandle exception: %s", e.what()); + LOG_ERROR("unhandled exception: %s", e.what()); exit_val = SPICEC_ERROR_CODE_ERROR; } catch (...) { LOG_ERROR("unhandled exception"); diff --git a/client/x11/named_pipe.cpp b/client/x11/named_pipe.cpp index 3043ba23..c6f38daa 100644 --- a/client/x11/named_pipe.cpp +++ b/client/x11/named_pipe.cpp @@ -75,7 +75,7 @@ int32_t Session::read(uint8_t *buf, int32_t size) int now; if ((now = recv(_fd_client, (char *)pos, size, 0)) <= 0) { if (now == 0) { - DBG(0, "read error, connetion shutdown"); + DBG(0, "read error, connection shutdown"); return -1; } if (errno == EAGAIN) { diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp index ea492edb..fecfb138 100644 --- a/client/x11/platform.cpp +++ b/client/x11/platform.cpp @@ -337,7 +337,7 @@ XIC XPlatform::get_input_context() void XPlatform::set_win_proc(Window win, win_proc_t proc) { if (XSaveContext(x_display, win, win_proc_context, (XPointer)proc)) { - THROW("set win proc pailed"); + THROW("set win proc failed"); } } @@ -775,7 +775,7 @@ bool DynamicScreen::set_screen_size(int size_index) XRRScreenConfiguration* config; if (!(config = XRRGetScreenInfo(get_display(), root_window))) { - LOG_WARN("get scren info failed"); + LOG_WARN("get screen info failed"); return false; } Rotation rotation; @@ -2592,7 +2592,7 @@ XLocalCursor::XLocalCursor(CursorData* cursor_data) int size; if (!get_size_bits(header, size)) { - THROW("invalid curosr type"); + THROW("invalid cursor type"); } uint32_t* cur_data = new uint32_t[cur_size]; diff --git a/client/x11/red_window.cpp b/client/x11/red_window.cpp index c9a16ec1..7e69b428 100644 --- a/client/x11/red_window.cpp +++ b/client/x11/red_window.cpp @@ -1875,7 +1875,7 @@ bool RedWindow::get_mouse_anchor_point(SpicePoint& pt) while (!(vis_region = get_visibale_region(_win))) { if (!vis_region_retries) { - THROW("get visibale region failed"); + THROW("get visible region failed"); } --vis_region_retries; usleep(X_RETRY_DELAY_MICRO); -- cgit