diff options
author | Holger Waechtler <devnull@localhost> | 2003-06-21 15:39:05 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2003-06-21 15:39:05 +0000 |
commit | 87102f9df456d2df5db473acdfde79d2bab09fa9 (patch) | |
tree | 1c3d7789c091609f16734fa7d3644c2531d8acf8 /linux/drivers | |
parent | 6cb7f752732bf161ea8a56f8531c21d37fd98fc0 (diff) | |
download | mediapointer-dvb-s2-87102f9df456d2df5db473acdfde79d2bab09fa9.tar.gz mediapointer-dvb-s2-87102f9df456d2df5db473acdfde79d2bab09fa9.tar.bz2 |
fix compile warning
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index 7e1f4ce1c..20bb2f137 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -528,7 +528,7 @@ static void dvb_frontend_stop (struct dvb_frontend_data *fe) static int dvb_frontend_start (struct dvb_frontend_data *fe) { - int ret, pt; + int ret; dprintk ("%s\n", __FUNCTION__); @@ -549,11 +549,12 @@ static int dvb_frontend_start (struct dvb_frontend_data *fe) mb(); #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) +{ /* bug in linux 2.4.x: kernel_thread() fails when the process calling * open() is run in the debugger (fixed in kernel 2.5). I hope this * workaround does not have any ugly side effects... */ - pt = current->ptrace; + int pt = current->ptrace; current->ptrace = 0; #endif @@ -561,6 +562,7 @@ static int dvb_frontend_start (struct dvb_frontend_data *fe) #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) current->ptrace = pt; +} #endif if (ret < 0) { |