diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-03-06 02:27:52 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-03-06 02:27:52 +0100 |
commit | 7aa14de21f5521da75d8e42cbfc36a3300439cbc (patch) | |
tree | d72f8d9326adf109256860098b601bcafd5817c0 /console/display.c | |
parent | e06952fcf88f4af1277b8faaa2749bfcc7db73ba (diff) |
Use macro instead of hardcoded value
* console/display.c (user_create): Use CONS_VERSION_MAJ_SHIFT macro instead
of hardcoded value 16.
Diffstat (limited to 'console/display.c')
-rw-r--r-- | console/display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/console/display.c b/console/display.c index 0030a72c..6b933144 100644 --- a/console/display.c +++ b/console/display.c @@ -788,7 +788,7 @@ user_create (display_t display, uint32_t width, uint32_t height, user = display->user; user->magic = CONS_MAGIC; - user->version = CONS_VERSION_MAJ << 16 | CONS_VERSION_AGE; + user->version = CONS_VERSION_MAJ << CONS_VERSION_MAJ_SHIFT | CONS_VERSION_AGE; user->changes.buffer = offsetof (struct cons_display, changes._buffer) / sizeof (uint32_t); user->changes.length = _CONS_CHANGES_LENGTH; |