summaryrefslogtreecommitdiff
path: root/keytypes.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 11:03:40 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 11:03:40 -0800
commit9737af15196380a1687d18a17d297ee17b45a83f (patch)
tree555445d8fbb5e814a8e9afb4b9bba78886455aed /keytypes.c
parentb67c058e2ccc27472b238a6b5dc5e4cd20f6d2bd (diff)
Remove register keyword from variable declarations
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'keytypes.c')
-rw-r--r--keytypes.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/keytypes.c b/keytypes.c
index 121280f..0735e11 100644
--- a/keytypes.c
+++ b/keytypes.c
@@ -172,7 +172,7 @@ InitKeyTypesInfo(KeyTypesInfo * info, XkbDescPtr xkb, KeyTypesInfo * from)
info->dflt.lvlNames = uTypedCalloc(from->dflt.szNames, Atom);
if (info->dflt.lvlNames)
{
- register unsigned sz = from->dflt.szNames * sizeof(Atom);
+ unsigned sz = from->dflt.szNames * sizeof(Atom);
memcpy(info->dflt.lvlNames, from->dflt.lvlNames, sz);
}
}
@@ -229,7 +229,7 @@ FreeKeyTypesInfo(KeyTypesInfo * info)
info->name = NULL;
if (info->types)
{
- register KeyTypeInfo *type;
+ KeyTypeInfo *type;
for (type = info->types; type; type = (KeyTypeInfo *) type->defs.next)
{
FreeKeyTypeInfo(type);
@@ -478,7 +478,7 @@ HandleIncludeKeyTypes(IncludeStmt * stmt,
static XkbKTMapEntryPtr
FindMatchingMapEntry(KeyTypeInfo * type, unsigned mask, unsigned vmask)
{
- register int i;
+ int i;
XkbKTMapEntryPtr entry;
for (i = 0, entry = type->entries; i < type->nEntries; i++, entry++)
@@ -492,7 +492,7 @@ FindMatchingMapEntry(KeyTypeInfo * type, unsigned mask, unsigned vmask)
static void
DeleteLevel1MapEntries(KeyTypeInfo * type)
{
- register int i, n;
+ int i, n;
for (i = 0; i < type->nEntries; i++)
{
@@ -992,7 +992,7 @@ static int
HandleKeyTypeDef(KeyTypeDef * def,
XkbDescPtr xkb, unsigned merge, KeyTypesInfo * info)
{
- register int i;
+ int i;
KeyTypeInfo type;
if (def->merge != MergeDefault)
@@ -1134,7 +1134,7 @@ HandleKeyTypesFile(XkbFile * file,
static Bool
CopyDefToKeyType(XkbDescPtr xkb, XkbKeyTypePtr type, KeyTypeInfo * def)
{
- register int i;
+ int i;
PreserveInfo *pre;
for (pre = def->preserve; pre != NULL;
@@ -1217,9 +1217,9 @@ CompileKeyTypes(XkbFile * file, XkbFileInfo * result, unsigned merge)
if (info.errorCount == 0)
{
- register int i;
- register KeyTypeInfo *def;
- register XkbKeyTypePtr type, next;
+ int i;
+ KeyTypeInfo *def;
+ XkbKeyTypePtr type, next;
if (info.name != NULL)
{