mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
Replace deprecated bzero with memset
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Marcin Baczyński <marbacz@gmail.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
f9810ba914
commit
5a0fc0ad21
32 changed files with 132 additions and 132 deletions
|
|
@ -580,7 +580,7 @@ int width,nOldGroups,oldWidth,newTypes[XkbNumKbdGroups];
|
|||
pSyms= XkbResizeKeySyms(xkb,key,width*nGroups);
|
||||
if (pSyms==NULL)
|
||||
return BadAlloc;
|
||||
bzero(pSyms,width*nGroups*sizeof(KeySym));
|
||||
memset(pSyms, 0, width*nGroups*sizeof(KeySym));
|
||||
for (i=0;(i<nGroups)&&(i<nOldGroups);i++) {
|
||||
pOldType= XkbKeyKeyType(xkb,key,i);
|
||||
pNewType= &xkb->map->types[newTypes[i]];
|
||||
|
|
@ -596,7 +596,7 @@ int width,nOldGroups,oldWidth,newTypes[XkbNumKbdGroups];
|
|||
pActs= XkbResizeKeyActions(xkb,key,width*nGroups);
|
||||
if (pActs==NULL)
|
||||
return BadAlloc;
|
||||
bzero(pActs,width*nGroups*sizeof(XkbAction));
|
||||
memset(pActs, 0, width*nGroups*sizeof(XkbAction));
|
||||
for (i=0;(i<nGroups)&&(i<nOldGroups);i++) {
|
||||
pOldType= XkbKeyKeyType(xkb,key,i);
|
||||
pNewType= &xkb->map->types[newTypes[i]];
|
||||
|
|
|
|||
Loading…
Reference in a new issue