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

« back to all changes in this revision

Viewing changes to src/ErrDes.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:
32
32
 
33
33
                        All Rights Reserved
34
34
 
35
 
Permission to use, copy, modify, and distribute this software and its 
36
 
documentation for any purpose and without fee is hereby granted, 
 
35
Permission to use, copy, modify, and distribute this software and its
 
36
documentation for any purpose and without fee is hereby granted,
37
37
provided that the above copyright notice appear in all copies and that
38
 
both that copyright notice and this permission notice appear in 
 
38
both that copyright notice and this permission notice appear in
39
39
supporting documentation, and that the name of Digital not be
40
40
used in advertising or publicity pertaining to distribution of the
41
 
software without specific, written prior permission.  
 
41
software without specific, written prior permission.
42
42
 
43
43
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
44
44
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
126
126
            ext->codes.first_error < code &&
127
127
            (!bext || ext->codes.first_error > bext->codes.first_error))
128
128
            bext = ext;
129
 
    }    
 
129
    }
130
130
    if (!buffer[0] && bext) {
131
131
        sprintf(buf, "%s.%d", bext->name, code - bext->codes.first_error);
132
132
        (void) XGetErrorDatabaseText(dpy, "XProtoError", buf, "", buffer, nbytes);
194
194
            tptr = Xmalloc (tlen);
195
195
        if (tptr) {
196
196
            sprintf(tptr, "%s.%s", name, type);
197
 
            XrmGetResource(db, tptr, "ErrorType.ErrorNumber", 
 
197
            XrmGetResource(db, tptr, "ErrorType.ErrorNumber",
198
198
              &type_str, &result);
199
199
            if (tptr != temp)
200
200
                Xfree (tptr);