diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-06-04 15:35:31 +0700 |
---|---|---|
committer | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-06-06 15:07:27 +0700 |
commit | 5a0fc0ad21d562612676ef88ef2d533b2391810a (patch) | |
tree | 6a88d6c9f6194165e08c934f50ac490d8c381ac6 /xkb/xkmread.c | |
parent | f9810ba914877b379cb36f1b9755f7923ceca14c (diff) |
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>
Diffstat (limited to 'xkb/xkmread.c')
-rw-r--r-- | xkb/xkmread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xkb/xkmread.c b/xkb/xkmread.c index 5d3372da2..814bb1d41 100644 --- a/xkb/xkmread.c +++ b/xkb/xkmread.c @@ -80,7 +80,7 @@ int newCount= *newCountRtrn; oldPtr= realloc(oldPtr,newCount*elemSize); if (oldPtr!=NULL) { char *tmp= (char *)oldPtr; - bzero(&tmp[oldCount*elemSize],(newCount-oldCount)*elemSize); + memset(&tmp[oldCount*elemSize], 0, (newCount-oldCount)*elemSize); } } else if (newCount<oldCount) { @@ -725,8 +725,8 @@ int nRead=0; return -1; } nRead+= tmp*SIZEOF(xkmKeySymMapDesc); - bzero((char *)typeName,XkbNumKbdGroups*sizeof(Atom)); - bzero((char *)type,XkbNumKbdGroups*sizeof(XkbKeyTypePtr)); + memset((char *)typeName, 0, XkbNumKbdGroups*sizeof(Atom)); + memset((char *)type, 0, XkbNumKbdGroups*sizeof(XkbKeyTypePtr)); if (wireMap.flags&XkmKeyHasTypes) { register int g; for (g=0;g<XkbNumKbdGroups;g++) { |