changeset 20738:1f37df331b35

Replace enneccesery O_RDWR with O_RDONLY
author voroshil
date Tue, 07 Nov 2006 18:39:38 +0000
parents eb15b01a50cb
children 6e206b0ed9e3
files stream/stream_radio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_radio.c	Tue Nov 07 18:27:40 2006 +0000
+++ b/stream/stream_radio.c	Tue Nov 07 18:39:38 2006 +0000
@@ -1011,7 +1011,7 @@
     stream->close=close_s;
     stream->fill_buffer=fill_buffer_s;
 
-    priv->radio_fd = open(radio_param_device, O_RDWR);
+    priv->radio_fd = open(radio_param_device, O_RDONLY);
     if (priv->radio_fd < 0) {
         mp_msg(MSGT_RADIO, MSGL_ERR, MSGTR_RADIO_UnableOpenDevice,
             radio_param_device, strerror(errno));