Convert to X.Org standard indentation style

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
unifdef -UXKB_IN_SERVER

Xserver has its own copy of this code now, so we don't need to keep
an unused copy in libxkbfile too.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Ran Benita <ran234@gmail.com>
Don't dereference xkb pointer until after checking it for NULL

Some compilers can perform mind-twistingly evil optimizations
if you check for NULL after using it, others just let you segv.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Ran Benita <ran234@gmail.com>
Convert sprintf calls to snprintf

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Ran Benita <ran234@gmail.com>
Constify atom name argument to XkbInternAtom

Matches XInternAtom, which it wraps, and quiets a bunch of const warnings
in xkbcomp.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Ran Benita <ran234@gmail.com>