From 8b721c07287846eebd234f5330114ef8639ef015 Mon Sep 17 00:00:00 2001 From: beveloper Date: Fri, 12 Jul 2002 15:07:40 +0000 Subject: [PATCH] removed warnings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@137 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/media-add-ons/legacy/LegacyAudioDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/media/media-add-ons/legacy/LegacyAudioDevice.cpp b/src/add-ons/media/media-add-ons/legacy/LegacyAudioDevice.cpp index ddb49cf8bc..2f4c9a87ba 100644 --- a/src/add-ons/media/media-add-ons/legacy/LegacyAudioDevice.cpp +++ b/src/add-ons/media/media-add-ons/legacy/LegacyAudioDevice.cpp @@ -21,7 +21,7 @@ LegacyAudioDevice::LegacyAudioDevice( const char *name, int32 id ) } input_flavor.name = const_cast( name ); - input_flavor.info = "legacy audio input"; + input_flavor.info = const_cast( "legacy audio input" ); //XXX might get delete[]ed later input_flavor.kinds = B_BUFFER_PRODUCER|B_CONTROLLABLE|B_PHYSICAL_INPUT; input_flavor.flavor_flags = B_FLAVOR_IS_GLOBAL; input_flavor.internal_id = 2 * id; @@ -56,7 +56,7 @@ LegacyAudioDevice::LegacyAudioDevice( const char *name, int32 id ) ioctl( fd, SOUND_SET_CAPTURE_COMPLETION_SEM, &in_sem, 0 ); output_flavor.name = const_cast( name ); - output_flavor.info = "legacy audio output"; + output_flavor.info = const_cast( "legacy audio output" ); //XXX might get delete[]ed later output_flavor.kinds = B_BUFFER_CONSUMER|B_TIME_SOURCE|B_CONTROLLABLE|B_PHYSICAL_OUTPUT; output_flavor.flavor_flags = B_FLAVOR_IS_GLOBAL; output_flavor.internal_id = 2 * id + 1;