/[gentoo-x86]/x11-base/xorg-server/files/1.1.1-fix_acpi_tokenize.patch
Gentoo

Contents of /x11-base/xorg-server/files/1.1.1-fix_acpi_tokenize.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 9 10:34:45 2007 UTC (7 years, 3 months ago) by dberkholz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Drop 1.1, everyone's stable on 1.2 or 1.3.
(Portage version: 2.1.3.8)

1 commit 0567a6337b84fa045b5732e98203f488274aa2a2
2 Author: Bram Verweij <amverweij@gmail.com>
3 Date: Wed Nov 8 18:00:52 2006 +0200
4
5 xfree86/linux acpi: fix tokenising
6 Split on a space, rather on the 'video' string, as strtok takes a char,
7 not a string.
8
9 diff --git a/hw/xfree86/os-support/linux/lnx_acpi.c b/hw/xfree86/os-support/linux/lnx_acpi.c
10 index aa30e72..024e6ef 100644
11 --- a/hw/xfree86/os-support/linux/lnx_acpi.c
12 +++ b/hw/xfree86/os-support/linux/lnx_acpi.c
13 @@ -78,7 +78,7 @@ lnxACPIGetEventFromOs(int fd, pmEvent *e
14 char *data = NULL; /* doesn't appear to be used in the kernel */
15 unsigned long int notify_l, data_l;
16
17 - video = strtok(ev, "video");
18 + video = strtok(ev, " ");
19
20 GFX = strtok(NULL, " ");
21 #if 0

  ViewVC Help
Powered by ViewVC 1.1.20