summaryrefslogtreecommitdiff
path: root/src/atom.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-08-31 18:22:03 +0300
committerRan Benita <ran234@gmail.com>2012-09-03 10:31:13 +0300
commitf205d0f9b6672f983a6f610cd8d19163980d8dc4 (patch)
tree7514ae7ac862174d2ac9908539fbaa4ace028ea7 /src/atom.c
parent1aa6e2b1e20542683ae224a7824e62e0fba623c7 (diff)
downloadxorg-lib-libxkbcommon-f205d0f9b6672f983a6f610cd8d19163980d8dc4.tar.gz
atom: make type and name of the 'a' field clearer
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/atom.c')
-rw-r--r--src/atom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/atom.c b/src/atom.c
index fde4d6d..a8dc7d2 100644
--- a/src/atom.c
+++ b/src/atom.c
@@ -74,7 +74,7 @@
struct atom_node {
struct atom_node *left, *right;
- uint32_t a;
+ xkb_atom_t atom;
unsigned int fingerprint;
char *string;
};
@@ -182,7 +182,7 @@ atom_intern(struct atom_table *table, const char *string,
else {
if (steal)
free(UNCONSTIFY(string));
- return (*np)->a;
+ return (*np)->atom;
}
}
}
@@ -205,8 +205,8 @@ atom_intern(struct atom_table *table, const char *string,
*np = nd;
nd->left = nd->right = NULL;
nd->fingerprint = fp;
- nd->a = darray_size(table->table);
+ nd->atom = darray_size(table->table);
darray_append(table->table, nd);
- return nd->a;
+ return nd->atom;
}