tslib: add various fixes
[qi-bootmenu-system.git] / sources / patches / tslib-various-fixes.patch
blobaa77325cb7ecc079530a9b38d331c19decbef53d
1 From 430a9b286820ee8441378b7042b14af9cf48d1f7 Mon Sep 17 00:00:00 2001
2 From: Marc Andre Tanner <mat@brain-dump.org>
3 Date: Sat, 2 Jan 2010 14:11:29 +0100
4 Subject: [PATCH 1/4] configure: disable check for c++ compiler
6 Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
7 ---
8 configure.ac | 1 -
9 1 files changed, 0 insertions(+), 1 deletions(-)
11 diff --git a/configure.ac b/configure.ac
12 index 70e0589..f79fc00 100644
13 --- a/configure.ac
14 +++ b/configure.ac
15 @@ -15,7 +15,6 @@ AC_SUBST(PACKAGE_DESCRIPTION)
16 TS_DEFAULT_FLAGS
18 # Checks for programs.
19 -AC_PROG_CXX
20 AC_PROG_CC
21 AC_PROG_CPP
22 TS_CC_HIDDEN_VISIBILITY
23 --
24 1.6.5
26 From dfada356955a7812bbcd0dd5c72545f5c494a1fb Mon Sep 17 00:00:00 2001
27 From: Marc Andre Tanner <mat@brain-dump.org>
28 Date: Sat, 2 Jan 2010 14:18:49 +0100
29 Subject: [PATCH 2/4] linear: remove unused variables
31 Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
32 ---
33 plugins/linear.c | 2 --
34 1 files changed, 0 insertions(+), 2 deletions(-)
36 diff --git a/plugins/linear.c b/plugins/linear.c
37 index 3d39961..99c307d 100644
38 --- a/plugins/linear.c
39 +++ b/plugins/linear.c
40 @@ -113,9 +113,7 @@ TSAPI struct tslib_module_info *mod_init(struct tsdev *dev, const char *params)
41 struct tslib_linear *lin;
42 struct stat sbuf;
43 FILE *pcal_fd;
44 - char pcalbuf[200];
45 int index;
46 - char *tokptr;
47 char *calfile=NULL;
49 lin = malloc(sizeof(struct tslib_linear));
50 --
51 1.6.5
53 From b891cb107b1c0f1ab3537e7bb2f65255a17ff790 Mon Sep 17 00:00:00 2001
54 From: Marc Andre Tanner <mat@brain-dump.org>
55 Date: Sat, 2 Jan 2010 14:21:15 +0100
56 Subject: [PATCH 3/4] linear: remove erroneous close(2)
58 Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
59 ---
60 plugins/linear.c | 1 -
61 1 files changed, 0 insertions(+), 1 deletions(-)
63 diff --git a/plugins/linear.c b/plugins/linear.c
64 index 99c307d..87874e2 100644
65 --- a/plugins/linear.c
66 +++ b/plugins/linear.c
67 @@ -150,7 +150,6 @@ TSAPI struct tslib_module_info *mod_init(struct tsdev *dev, const char *params)
68 printf("\n");
69 #endif /*DEBUG*/
70 fclose(pcal_fd);
71 - close(pcal_fd);
75 --
76 1.6.5
78 From 9d6c264c62b142069e7aa9bb68841dd806b56e80 Mon Sep 17 00:00:00 2001
79 From: Marc Andre Tanner <mat@brain-dump.org>
80 Date: Sat, 2 Jan 2010 14:23:23 +0100
81 Subject: [PATCH 4/4] linear: remove useless variable initialization
83 Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
84 ---
85 plugins/linear.c | 2 +-
86 1 files changed, 1 insertions(+), 1 deletions(-)
88 diff --git a/plugins/linear.c b/plugins/linear.c
89 index 87874e2..4fe04d3 100644
90 --- a/plugins/linear.c
91 +++ b/plugins/linear.c
92 @@ -114,7 +114,7 @@ TSAPI struct tslib_module_info *mod_init(struct tsdev *dev, const char *params)
93 struct stat sbuf;
94 FILE *pcal_fd;
95 int index;
96 - char *calfile=NULL;
97 + char *calfile;
99 lin = malloc(sizeof(struct tslib_linear));
100 if (lin == NULL)
102 1.6.5