diff options
Diffstat (limited to 'programs/Xserver/Xi/chgfctl.c')
-rw-r--r-- | programs/Xserver/Xi/chgfctl.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/programs/Xserver/Xi/chgfctl.c b/programs/Xserver/Xi/chgfctl.c index ece0307e8..d8e72b2f3 100644 --- a/programs/Xserver/Xi/chgfctl.c +++ b/programs/Xserver/Xi/chgfctl.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/Xi/chgfctl.c,v 3.4tsi Exp $ */ +/* $XFree86: xc/programs/Xserver/Xi/chgfctl.c,v 3.5tsi Exp $ */ /************************************************************ @@ -500,8 +500,7 @@ ChangeStringFeedback (client, dev, mask, s, f) StringFeedbackPtr s; xStringFeedbackCtl *f; { - register char n; - register long *p; + char n; int i, j; KeySym *syms, *sup_syms; @@ -509,12 +508,7 @@ ChangeStringFeedback (client, dev, mask, s, f) if (client->swapped) { swaps(&f->length,n); /* swapped num_keysyms in calling proc */ - p = (long *) (syms); - for (i=0; i<f->num_keysyms; i++) - { - swapl(p, n); - p++; - } + SwapLongs((CARD32 *)syms, f->num_keysyms); } if (f->num_keysyms > s->ctrl.max_symbols) |