[Redbutton-devel] SF.net SVN: redbutton: [200] redbutton-download/trunk/channels.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-01-26 17:04:52
|
Revision: 200
http://svn.sourceforge.net/redbutton/?rev=200&view=rev
Author: skilvington
Date: 2007-01-26 09:04:50 -0800 (Fri, 26 Jan 2007)
Log Message:
-----------
only snprintf the frontend device name once
Modified Paths:
--------------
redbutton-download/trunk/channels.c
Modified: redbutton-download/trunk/channels.c
===================================================================
--- redbutton-download/trunk/channels.c 2007-01-26 17:01:43 UTC (rev 199)
+++ redbutton-download/trunk/channels.c 2007-01-26 17:04:50 UTC (rev 200)
@@ -242,10 +242,9 @@
/* need to keep the frontend device open to stop it untuning itself */
static int fe_fd = -1;
- snprintf(fe_dev, sizeof(fe_dev), FE_DEVICE, adapter);
-
if(fe_fd < 0)
{
+ snprintf(fe_dev, sizeof(fe_dev), FE_DEVICE, adapter);
/*
* need O_RDWR if you want to tune, O_RDONLY is okay for getting info
* if someone else is using the frontend, we can only open O_RDONLY
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|