~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/xkb/XKBCompat.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
fee is hereby granted, provided that the above copyright
8
8
notice appear in all copies and that both that copyright
9
9
notice and this permission notice appear in supporting
10
 
documentation, and that the name of Silicon Graphics not be 
11
 
used in advertising or publicity pertaining to distribution 
 
10
documentation, and that the name of Silicon Graphics not be
 
11
used in advertising or publicity pertaining to distribution
12
12
of the software without specific prior written permission.
13
 
Silicon Graphics makes no representation about the suitability 
 
13
Silicon Graphics makes no representation about the suitability
14
14
of this software for any purpose. It is provided "as is"
15
15
without any express or implied warranty.
16
16
 
17
 
SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 
18
 
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 
 
17
SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
 
18
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
19
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
20
 
GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
21
 
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 
22
 
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 
 
20
GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
 
21
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 
22
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
23
23
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
24
24
THE USE OR PERFORMANCE OF THIS SOFTWARE.
25
25
 
46
46
register int            i;
47
47
XkbReadBufferRec        buf;
48
48
 
49
 
    if (!_XkbInitReadBuffer(dpy,&buf,(int)rep->length*4)) 
 
49
    if (!_XkbInitReadBuffer(dpy,&buf,(int)rep->length*4))
50
50
        return BadAlloc;
51
51
 
52
52
    if (nread_rtrn)
99
99
        }
100
100
    }
101
101
    i= _XkbFreeReadBuffer(&buf);
102
 
    if (i) 
 
102
    if (i)
103
103
        fprintf(stderr,"CompatMapReply! Bad length (%d extra bytes)\n",i);
104
104
    if (i || buf.error)
105
105
        return BadLength;