Author: stippi Date: 2010-05-23 14:27:39 +0200 (Sun, 23 May 2010) New Revision: 36906 Changeset: http://dev.haiku-os.org/changeset/36906/haiku Ticket: http://dev.haiku-os.org/ticket/5892 Modified: haiku/trunk/src/apps/soundrecorder/RecorderWindow.cpp Log: Fixed one coding style violation and applied part of patch of ticket #5892, which includes fixes to compile Haiku on clang. Modified: haiku/trunk/src/apps/soundrecorder/RecorderWindow.cpp =================================================================== --- haiku/trunk/src/apps/soundrecorder/RecorderWindow.cpp 2010-05-23 04:22:12 UTC (rev 36905) +++ haiku/trunk/src/apps/soundrecorder/RecorderWindow.cpp 2010-05-23 12:27:39 UTC (rev 36906) @@ -416,18 +416,18 @@ // 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;