mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
xfree86: switch options from pointer to XF86OptionPtr
In all cases, the pointer was simply type-cast anyway. Let's get some compile-time type safety going, how about that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Squashed in: xfree86: Move definition of xf86OptionPtr into separate header file The pile of spaghettis that is the xfree86 include dependencies make it rather hard to have a single typedef somewhere that's not interfering with everything else or drags in a whole bunch of other includes. Move the xf86OptionRec and GenericListRec declarations into a separate header. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
05284a03f9
commit
24823f1ab0
13 changed files with 168 additions and 134 deletions
|
|
@ -112,7 +112,7 @@ GetBaud (int baudrate)
|
|||
}
|
||||
|
||||
int
|
||||
xf86OpenSerial (pointer options)
|
||||
xf86OpenSerial (XF86OptionPtr options)
|
||||
{
|
||||
struct termios t;
|
||||
int fd, i;
|
||||
|
|
@ -185,7 +185,7 @@ xf86OpenSerial (pointer options)
|
|||
}
|
||||
|
||||
int
|
||||
xf86SetSerial (int fd, pointer options)
|
||||
xf86SetSerial (int fd, XF86OptionPtr options)
|
||||
{
|
||||
struct termios t;
|
||||
int val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue