~ubuntu-branches/ubuntu/natty/libxi/natty-201011191114

« back to all changes in this revision

Viewing changes to src/XGetBMap.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-11-21 18:39:28 UTC
  • mfrom: (1.1.10 upstream) (0.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20091121183928-ek2jwqx3rmhv3zjz
Tags: 2:1.3-1
* Bump Standards-Version to 3.8.3.
* Add build-deps on xmlto and asciidoc to build the manpages.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Xorg: XGetBMap.c,v 1.4 2001/02/09 02:03:50 xorgcvs Exp $ */
2
 
 
3
1
/************************************************************
4
2
 
5
3
Copyright 1989, 1998  The Open Group
45
43
SOFTWARE.
46
44
 
47
45
********************************************************/
48
 
/* $XFree86: xc/lib/Xi/XGetBMap.c,v 3.3 2001/12/14 19:55:13 dawes Exp $ */
49
46
 
50
47
/***********************************************************************
51
48
 *
66
63
#define MIN(a, b) ((a) < (b) ? (a) : (b))
67
64
 
68
65
int
69
 
XGetDeviceButtonMapping(dpy, device, map, nmap)
70
 
    register Display *dpy;
71
 
    XDevice *device;
72
 
    unsigned char map[];
73
 
    unsigned int nmap;
 
66
XGetDeviceButtonMapping(
 
67
    register Display    *dpy,
 
68
    XDevice             *device,
 
69
    unsigned char        map[],
 
70
    unsigned int         nmap)
74
71
{
75
72
    int status = 0;
76
73
    unsigned char mapping[256]; /* known fixed size */