Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Garnacho
xserver
Commits
d319a0a6
Commit
d319a0a6
authored
Nov 07, 2003
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings.
parent
598c5d54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
hw/kdrive/linux/ts.c
hw/kdrive/linux/ts.c
+6
-8
No files found.
hw/kdrive/linux/ts.c
View file @
d319a0a6
...
...
@@ -42,7 +42,7 @@ static long lastx = 0, lasty = 0;
int
KdTsPhyScreen
=
0
;
int
static
int
TsReadBytes
(
int
fd
,
char
*
buf
,
int
len
,
int
min
)
{
int
n
,
tot
;
...
...
@@ -72,18 +72,14 @@ TsReadBytes (int fd, char *buf, int len, int min)
return
tot
;
}
void
static
void
TsRead
(
int
tsPort
,
void
*
closure
)
{
KdMouseInfo
*
mi
=
closure
;
int
fd
=
(
int
)
mi
->
driver
;
TS_EVENT
event
;
long
buf
[
3
];
int
n
;
long
pressure
;
long
x
,
y
;
unsigned
long
flags
;
unsigned
long
buttons
;
n
=
TsReadBytes
(
tsPort
,
(
char
*
)
&
event
,
sizeof
(
event
),
sizeof
(
event
));
if
(
n
==
sizeof
(
event
))
...
...
@@ -135,7 +131,7 @@ char *TsNames[] = {
int
TsInputType
;
int
static
int
TsInit
(
void
)
{
int
i
;
...
...
@@ -182,9 +178,11 @@ TsInit (void)
close
(
fd
);
}
}
return
0
;
}
void
static
void
TsFini
(
void
)
{
KdMouseInfo
*
mi
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment