File: dst_test-no-set-id.patch

package info (click to toggle)
linuxtv-dvb-apps 1.1.1%2Brev1500-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,980 kB
  • sloc: ansic: 49,043; makefile: 810; perl: 236; sh: 110; xml: 13
file content (44 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Description: Remove "dst_test -p"
 The functionality was never actually implemented in the kernel,
 and CA_SET_PID was removed from the kernel headers.
Author: Adrian Bunk <@debian.org>
Bug-Debian: https://bugs.debian.org/884039

--- linuxtv-dvb-apps-1.1.1+rev1500.orig/util/dst-utils/dst_test.c
+++ linuxtv-dvb-apps-1.1.1+rev1500/util/dst-utils/dst_test.c
@@ -111,16 +111,6 @@ static int dst_reset(int cafd)
 	return 0;
 }
 
-static int dst_set_pid(int cafd)
-{
-	if ((ioctl(cafd, CA_SET_PID)) < 0) {
-		printf("%s: ioctl failed ..\n", __FUNCTION__);
-		return -1;
-	}
-
-	return 0;
-}
-
 static int dst_get_descr(int cafd)
 {
 	if ((ioctl(cafd, CA_GET_DESCR_INFO)) < 0) {
@@ -191,7 +181,6 @@ int main(int argc, char *argv[])
 				"\t -c capabilities\n"
 				"\t -i info\n"
 				"\t -r reset\n"
-				"\t -p pid\n"
 				"\t -g get descr\n"
 				"\t -s set_descr\n"
 				"\t -a app_info\n"
@@ -229,10 +218,6 @@ int main(int argc, char *argv[])
 				printf("%s: Reset\n", __FUNCTION__);
 				dst_reset(cafd);
 				break;
-			case 'p':
-				printf("%s: PID\n", __FUNCTION__);
-				dst_set_pid(cafd);
-				break;
 			case 'g':
 				printf("%s: Get Desc\n", __FUNCTION__);
 				dst_get_descr(cafd);