From a8ee8b8f1ced71e48ea58ef5b325c35e3bb5022a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 23 May 2010 12:27:39 +0000 Subject: [PATCH] Fixed one coding style violation and applied part of patch of ticket #5892, which includes fixes to compile Haiku on clang. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36906 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/soundrecorder/RecorderWindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/apps/soundrecorder/RecorderWindow.cpp b/src/apps/soundrecorder/RecorderWindow.cpp index 2a4642f34e..ba935c582c 100644 --- a/src/apps/soundrecorder/RecorderWindow.cpp +++ b/src/apps/soundrecorder/RecorderWindow.cpp @@ -416,18 +416,18 @@ RecorderWindow::InitWindow() // Input selection lists all available physical inputs that produce // buffers with B_MEDIA_RAW_AUDIO format data. popup = new BPopUpMenu("Input"); - int max_input_count = 64; - dormant_node_info dni[max_input_count]; + const int maxInputCount = 64; + dormant_node_info dni[maxInputCount]; - int32 real_count = max_input_count; + int32 real_count = maxInputCount; media_format output_format; output_format.type = B_MEDIA_RAW_AUDIO; output_format.u.raw_audio = media_raw_audio_format::wildcard; error = fRoster->GetDormantNodes(dni, &real_count, 0, &output_format, 0, B_BUFFER_PRODUCER | B_PHYSICAL_INPUT); - if (real_count > max_input_count) { - WINDOW((stderr, "dropped %ld inputs\n", real_count - max_input_count)); - real_count = max_input_count; + if (real_count > maxInputCount) { + WINDOW((stderr, "dropped %ld inputs\n", real_count - maxInputCount)); + real_count = maxInputCount; } char selected_name[B_MEDIA_NAME_LENGTH] = "Default input"; BMessage * msg;