diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-01-10 15:26:55 +0000 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-01-13 18:11:59 +0200 |
commit | 68c2897e5bc910151ab5f6c1c06299ae7e60c678 (patch) | |
tree | 310c8fe12f509c67d350a74b0ecfefc363bb6843 /client | |
parent | 51f1ad54ad51cdf202566f26e7d29082a3c577ed (diff) | |
download | spice-68c2897e5bc910151ab5f6c1c06299ae7e60c678.tar.gz spice-68c2897e5bc910151ab5f6c1c06299ae7e60c678.tar.xz spice-68c2897e5bc910151ab5f6c1c06299ae7e60c678.zip |
Remove trailing whitespace from end of lines
Diffstat (limited to 'client')
-rw-r--r-- | client/display_channel.cpp | 2 | ||||
-rw-r--r-- | client/glz_decode_tmpl.c | 2 | ||||
-rw-r--r-- | client/jpeg_decoder.cpp | 2 | ||||
-rw-r--r-- | client/red_client.cpp | 2 | ||||
-rw-r--r-- | client/tests/controller_test/controller_test.cpp | 4 | ||||
-rw-r--r-- | client/windows/platform.cpp | 10 | ||||
-rw-r--r-- | client/windows/stdint.h | 10 | ||||
-rw-r--r-- | client/x11/platform.cpp | 4 | ||||
-rw-r--r-- | client/zlib_decoder.cpp | 4 |
9 files changed, 20 insertions, 20 deletions
diff --git a/client/display_channel.cpp b/client/display_channel.cpp index 22391220..173f012e 100644 --- a/client/display_channel.cpp +++ b/client/display_channel.cpp @@ -1306,7 +1306,7 @@ void DisplayChannel::reset_screen() AutoRef<ResetTimer> reset_timer(new ResetTimer(screen()->ref(), get_client())); detach_from_screen(get_client().get_application()); - + get_client().activate_interval_timer(*reset_timer, RESET_TIMEOUT); } diff --git a/client/glz_decode_tmpl.c b/client/glz_decode_tmpl.c index 6aaf63b3..ad78cd71 100644 --- a/client/glz_decode_tmpl.c +++ b/client/glz_decode_tmpl.c @@ -136,7 +136,7 @@ out->b = (out->b << 3) | ((out->b >> 2) & 0x07); \ out->pad = 0; \ out++; \ -} +} #endif #endif diff --git a/client/jpeg_decoder.cpp b/client/jpeg_decoder.cpp index 19d22e34..2b2d5e47 100644 --- a/client/jpeg_decoder.cpp +++ b/client/jpeg_decoder.cpp @@ -85,7 +85,7 @@ JpegDecoder::JpegDecoder() _cinfo.src->skip_input_data = jpeg_decoder_skip_input_data; _cinfo.src->resync_to_restart = jpeg_resync_to_restart; _cinfo.src->term_source = jpeg_decoder_term_source; - + static SpiceJpegDecoderOps decoder_ops = { op_begin_decode, op_decode, diff --git a/client/red_client.cpp b/client/red_client.cpp index 6b11e38a..04544083 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -1311,7 +1311,7 @@ void RedClient::dispatch_agent_message(VDAgentMessage* msg, void* data) default: DBG(0, "Unsupported message type %u size %u", msg->type, msg->size); } -} +} void RedClient::handle_agent_tokens(RedPeer::InMessage* message) { diff --git a/client/tests/controller_test/controller_test.cpp b/client/tests/controller_test/controller_test.cpp index 24db9f49..4994613c 100644 --- a/client/tests/controller_test/controller_test.cpp +++ b/client/tests/controller_test/controller_test.cpp @@ -166,7 +166,7 @@ int main(int argc, char *argv[]) //send_data(CONTROLLER_HOST_SUBJECT, (uint8_t*)HOST_SUBJECT, sizeof(HOST_SUBJECT)); send_data(CONTROLLER_SET_TITLE, (uint8_t*)TITLE, sizeof(TITLE)); send_data(CONTROLLER_HOTKEYS, (uint8_t*)HOTKEYS, sizeof(HOTKEYS)); - + send_data(CONTROLLER_CREATE_MENU, (uint8_t*)MENU, sizeof(MENU)); send_value(CONTROLLER_FULL_SCREEN, /*CONTROLLER_SET_FULL_SCREEN |*/ CONTROLLER_AUTO_DISPLAY_RES); @@ -194,7 +194,7 @@ int main(int argc, char *argv[]) printf("Press <Enter> to close connection\n"); getchar(); #ifdef WIN32 - CloseHandle(pipe); + CloseHandle(pipe); #else close(sock); #endif diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp index a99d438d..2b719f21 100644 --- a/client/windows/platform.cpp +++ b/client/windows/platform.cpp @@ -139,7 +139,7 @@ static uint32_t get_clipboard_format(uint32_t type) { for (size_t i = 0; i < clipboard_formats_count; i++) { for (uint32_t* ptype = clipboard_formats[i].types; *ptype; ptype++) { if (*ptype == type) { - return clipboard_formats[i].format; + return clipboard_formats[i].format; } } } @@ -228,7 +228,7 @@ static LRESULT CALLBACK PlatformWinProc(HWND hWnd, UINT message, WPARAM wParam, // handling WM_RENDERFORMAT. Therefore, we try our best by sending CLIPBOARD_REQUEST to the // agent, while waiting alertably for a while (hoping for good) for receiving CLIPBOARD data // or CLIPBOARD_RELEASE from the agent, which both will signal clipboard_event. - uint32_t type = get_clipboard_type(wParam); + uint32_t type = get_clipboard_type(wParam); if (!type) { LOG_INFO("Unsupported clipboard format %u", wParam); break; @@ -985,11 +985,11 @@ void Platform::set_clipboard_listener(ClipboardListener* listener) static HGLOBAL utf8_alloc(LPCSTR data, int size) { - HGLOBAL handle; + HGLOBAL handle; LPVOID buf; int len; - // Received utf8 string is not null-terminated + // Received utf8 string is not null-terminated if (!(len = MultiByteToWideChar(CP_UTF8, 0, data, size, NULL, 0))) { return NULL; } @@ -1001,7 +1001,7 @@ static HGLOBAL utf8_alloc(LPCSTR data, int size) if (!(buf = GlobalLock(handle))) { GlobalFree(handle); return NULL; - } + } // Translate data and set clipboard content if (!(MultiByteToWideChar(CP_UTF8, 0, data, size, (LPWSTR)buf, len))) { GlobalUnlock(handle); diff --git a/client/windows/stdint.h b/client/windows/stdint.h index 0e0ecd41..30131610 100644 --- a/client/windows/stdint.h +++ b/client/windows/stdint.h @@ -104,11 +104,11 @@ typedef unsigned long long uint_least64_t; -/* 7.18.1.3 Fastest minimum-width integer types +/* 7.18.1.3 Fastest minimum-width integer types * Not actually guaranteed to be fastest for all purposes - * Here we use the exact-width types for 8 and 16-bit ints. + * Here we use the exact-width types for 8 and 16-bit ints. */ @@ -164,7 +164,7 @@ typedef unsigned long long uintmax_t; /* 7.18.2.1 Limits of exact-width integer types */ -#define INT8_MIN (-128) +#define INT8_MIN (-128) #define INT16_MIN (-32768) @@ -260,7 +260,7 @@ typedef unsigned long long uintmax_t; /* 7.18.2.4 Limits of integer types capable of holding - object pointers */ + object pointers */ #define INTPTR_MIN INT32_MIN @@ -298,7 +298,7 @@ typedef unsigned long long uintmax_t; -#ifndef WCHAR_MIN /* also in wchar.h */ +#ifndef WCHAR_MIN /* also in wchar.h */ #define WCHAR_MIN 0 diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp index 9094a64a..df8fa768 100644 --- a/client/x11/platform.cpp +++ b/client/x11/platform.cpp @@ -534,7 +534,7 @@ XIC XPlatform::get_input_context() void XPlatform::set_win_proc(Window win, win_proc_t proc) { int res; - + XLockDisplay(x_display); res = XSaveContext(x_display, win, win_proc_context, (XPointer)proc); XUnlockDisplay(x_display); @@ -1046,7 +1046,7 @@ bool DynamicScreen::set_screen_size(int size_index) XLockDisplay(get_display()); config = XRRGetScreenInfo(get_display(), root_window); XUnlockDisplay(get_display()); - + if (!config) { LOG_WARN("get screen info failed"); return false; diff --git a/client/zlib_decoder.cpp b/client/zlib_decoder.cpp index 6c154fef..f5741d3e 100644 --- a/client/zlib_decoder.cpp +++ b/client/zlib_decoder.cpp @@ -36,7 +36,7 @@ static void op_decode(SpiceZlibDecoder *decoder, ZlibDecoder::ZlibDecoder() { int z_ret; - + _z_strm.zalloc = Z_NULL; _z_strm.zfree = Z_NULL; _z_strm.opaque = Z_NULL; @@ -71,7 +71,7 @@ void ZlibDecoder::decode(uint8_t *data, int data_size, uint8_t *dest, int dest_s _z_strm.avail_out = dest_size; z_ret = inflate(&_z_strm, Z_FINISH); - + if (z_ret != Z_STREAM_END) { THROW("zlib inflate failed, error %d", z_ret); } |